solve code forces 460A