one day Vasya get hold sheet checker paper nm squares size our Vasya adore geometrical figure paint rectangle paper the rectangle side parallel coordinate axe length rectangle 3 square side paint grid line the side sheet paper edge then Vasya hatch square rectangle frameslet define rectangle frame set square inside rectangle share bordera little later Vasya find sheet paper exactly size could not guess sheet paper different so ask check sheet paper find contain paint frame themplease note frame paint Vasya arbitrarily intersect overlap completely coincidethe coordinate sheet paper introduce way X axis go x coordinate square number value 1 n Y axis go leave right y coordinate square number value 1 m