D accepted (Codeforces Round #276 (Div.2))