Bessie is trying to convert a number $$$X$$$ to $$$Y$$$.
In one operation, Bessie can choose an integer $$$M$$$ ($$$M \ge 1$$$) and round $$$X$$$ to the nearest multiple of $$$M$$$. If $$$X$$$ is exactly in the middle of two multiples of $$$M$$$, it is rounded up. Note that $$$0$$$ is a multiple of every number.
What is the least number of operations Bessie needs to perform to convert $$$X$$$ to $$$Y$$$? Output this number, or $$$-1$$$ if it is impossible.
The first line contains a single integer $$$T$$$ ($$$1 \le T \le 10^4$$$) — the number of test cases.
Each of the next $$$T$$$ lines contains two integers $$$X$$$ and $$$Y$$$ ($$$1 \le X, Y \le 10^9$$$) — the initial number and the target number.
For each test case, output a single integer — the minimum number of operations required, or $$$-1$$$ if it is impossible.
52 56 44 13 31 10
22-104
71 1000000000999999999 1999999999 10999999999 11999999999 12999999999 131000000000 100
30-14646464640
In the first testcase of the first sample, $$$X=2$$$ and $$$Y=5$$$. Bessie can perform the following $$$2$$$ operations:
It can be proven that it is impossible to do this in fewer than $$$2$$$ operations.
In the second testcase of the first sample, $$$X=6$$$ and $$$Y=4$$$.
It can be proven that it is impossible to do this in fewer than $$$2$$$ operations.
| Name |
|---|


