codeforces 1041 F : Ray in the tube

NoSuchKey