solution for round 266 Div.2