codeforces div2 #201, A && B && C.