Codeforces Round #157 (Div. 1) D