You want to move from position to position on a number line. At position , you may move right by any integer from through .
Find the minimum number of moves required to reach position exactly. Print t{-1} if it is unreachable.
The input is given in the following format:
case case
For each test case, print the minimum number of moves on one line. Print -1 if position is unreachable.
Each test case is given in the following format:
| 3 | 25 | , and the sum of over all test cases does not exceed . |
| 4 | 45 | No additional constraints. |