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