codeforces 835E The penguin's game

NoSuchKey