Problem A of CodeForces Round #258 completed successfully.