Codeforces A. Bear and Big Brother

NoSuchKey