http://codeforces.com/contest/1065/problem/E Educational Codeforces Round 52 (Rated for Div. 2)

NoSuchKey