codeforces A. Maze

NoSuchKey