Codeforces #170 div2,A && B && C.