Codefoeces round #697 div3 c Ball in Berland

NoSuchKey