Codeforces 233 div2, A and B AC.