solve code forces 462B