Let's look at the picture below. It shows points in the Cartesian coordinate system. You can move between the points only in the directions indicated by the arrows. To reach the destination point from the starting point, you need to make a number of steps equal to the number of intermediate points you pass through plus . For example, to go from to , you need to pass through the intermediate points and . The number of steps is 2 + 1 = 3. In this problem, you are asked to calculate the number of steps required to go from one point to another. Moving in the reverse direction of the arrows is not allowed.

The first line contains the number of tests (0 < n \leq 500). The next lines each contain four integers ( each integer \leq 10^5). The first pair specifies the coordinates of the starting point, and the second pair specifies the coordinates of the destination point. Coordinates are given as .
For each test case, output its number followed by the number of steps required to reach the destination from the starting point. You may assume that such a path always exists.
Example 1