Codeforces Round #343 (Div. 2) Problem A & B

NoSuchKey