Codeforces 1340F: Nastya and CBS

NoSuchKey