277-Codeforces Round #170 (Div. 1) D