Codeforces Round #461 C. Cave Painting

NoSuchKey