Secular reception
Agent Johnny English is back in action!
This time, the fearless agent and his assistant Bof have been tasked with maintaining order at a charity event. Upon entering the hall and surveying the scene, English realized that to get a complete picture of what was happening, he would need to take a stroll around the room, chat with the guests, and observe the waiters. After completing his reconnaissance, English, confident in his success, decided to meet up with Bof and impress him with his incredible analytical skills. Unfortunately, poor Bof completely loses his way at social events, so he just slowly follows the instructions of the senior agent.
The hall is a square on the coordinate plane with sides of length , parallel to the coordinate axes. The entrance is located in the lower left corner of the square, at point . Agent English plans to select several guests positioned at points with integer coordinates and greet each of them in turn. He will not greet the same guest consecutively, but he might occasionally make a mistake and return to a guest he has already greeted. The trained agent moves at a speed of and greets guests instantly. Meanwhile, Bof, moving at a speed of , is heading directly to the final point of the route planned by English.
To avoid raising suspicions, Agent English wants to find a route where he and Bof will arrive at the meeting point simultaneously. Unfortunately, the agent does not have time to think through the details of his brilliant plan, so it is up to you to handle that.
Given the speeds and , find any route that starts at point and consists of points with non-negative coordinates not exceeding . Moreover, the time taken to traverse the route at speed must equal the time taken to traverse the same route at speed .
Input
Two positive integers and — the speeds of Bof and Agent English, respectively.
Output
In the first line, print the number of points in the route. In the following lines, print pairs of integers and — the coordinates of the points in the order of traversal. The first point must be . Points may repeat, but there must not be two identical points in a row.