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