Codeforces Round #234 (Div. 2), Problem D