CodeForces 227 Div2 problems A and B AC.