solve code forces 462A