You are developing a test generator. It takes two integers $$$s$$$ and $$$m$$$ as input. You need to construct an array of non-negative integers $$$a = [a_{1}, a_{2}, \dots, a_{n}]$$$ such that:
In other words, in each number $$$a_i$$$, the bits that are set to one can only be in the positions where the bits in the number $$$m$$$ are also set to one.
Determine whether there exists at least one such array. If it exists, find the minimum possible length $$$n$$$.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
Each test case consists of a single line containing two integers $$$s$$$ and $$$m$$$ ($$$1 \le s, m \le 10^{18}$$$) — parameters of the generator.
For each test case, print one integer:
613 513 313 61000000007 277664899999999999 1998244353 1557287
35-1-199999999999642
Let's analyze some examples:
| Name |
|---|


