Codeforces Round #163 (Div. 2) A. Stones on the Table

NoSuchKey