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