codeforces 3A. Shortest path of the king

NoSuchKey