During quarantine chef’s friend invented a game. In this game there are two players, player 1 and Player 2. In center of garden there is one finish circle and both players are at different distances respectively $X$ and $Y$ from finish circle.
Between finish circle and Player 1 there are $X$ number of circles and between finish circle and Player 2 there are $Y$ number of circles. Both player wants to reach finish circle with minimum number of jumps. Player can jump one circle to another circle.
Both players can skip $2^0-1$ or $2^1- 1$ or …. or $2^N-1$ circles per jump. A player cannot skip same number of circles in a match more than once. If both players uses optimal way to reach finish circle what will be the difference of minimum jumps needed to reach finish circle by both players. 
If both players reach finish circle with same number of jumps answer will be $0$ $0$.

-----Input:-----
- The first line of the input contains a single integer $T$ denoting the number of test cases. The 
description of $T$ test cases follows.
- The first line of each test case contains 2 space separated integers $X$ and $Y$.

-----Output:-----
For each test case, print a single line containing 2 space-separated integers which player win and what is the difference between number of minimum jump required by both players to reach finish circle.

-----Constraints-----
- $1 \leq T \leq 10^5$
- $1 \leq X,Y \leq 2*10^7$

-----Sample Input:-----
2
4 5
3 5

-----Sample Output:-----
0 0
1 1

-----Explanation:-----
Test Case 1:

Test Case 2:

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = "import sys\ninput = sys.stdin.readline\n\nT = int(input().strip())\n\nfor _ in range(T):\n X,Y = list(map(int,input().split()))\n x = X+1\n y = Y +1\n def bit(x):\n  a = []\n  while x>0:\n   a.append(x&1)\n   x = x//2\n\n  return sum(a)\n \n count_x = bit(x)\n count_y = bit(y)\n\n\n # while(x>0):\n #   n = bit(x)\n #   # print('n_x ' , n)\n #   if x == 2**(n+1)-1:\n #       count_x += 1\n #       break\n #   elif 2**n -1 < x:\n #       x = (x-(2**n-1))\n #       count_x +=1\n #       if x != 1:\n #           x = x-1\n #       else:\n #           count_x += 1\n #           break\n   \n \n # while y>0:\n #   n = bit(y)\n #   # print('n ' , n)\n #   if y == 2**(n+1)-1:\n #       count_y += 1\n #       break\n #   elif 2**n -1 < y:\n #       y = (y-(2**n-1))\n #       count_y += 1\n #       if y != 1:\n #           y = y-1\n #       else:\n #           count_y += 1\n #           break\n # print('x',count_x, count_y)\n\n if count_x < count_y:\n  print('1',count_y-count_x)\n elif count_y < count_x:\n  print('2',count_x-count_y)\n else:\n  print('0','0')\n\n"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 13227