Given three integers x, a, b. You can do the following three operations several times:
Calculate the smallest number of operations to set xx to 00.
输入格式
The input consists of
multiple test cases. The first line contains a single integer T (1≤T≤2×104)
- the number of test cases. Description of the test cases follows.
The first line of each test case contains
three integers x,
a, b(0≤x,a,b≤1018).
输出格式
For each test case, print one integer - the smallest number of operations to set x to 0.