Codeforces Round #104 (Div. 1) D Lucky Pair

NoSuchKey