Codeforces Round #174 (Div. 1) (A,B)