Amin and Niloufar need to travel from point to . In normal terrain, they can travel km per day. Their path is interrupted by a wide swamp that runs parallel to the -axis. The swamp is kilometers wide, with boundaries at and . The map of the area is shown in the diagram below:
The travel speed of Amin and Niloufar through the swamp is kilometers per day. Find the shortest possible time to travel from point to and print the result in days.
If the shortest travel time is days hours minutes, and so on, print only the value .
The first line of input contains a positive integer , representing the number of test cases.
For each test case, the only line contains two integers and .
For each test case, print a single integer representing the minimum number of days required to reach the destination.