Codeforces. R271. Div2. Problems A-C.