CodeForces 236 div 2, A, B and C, AC.