Motu and Patlu are racing against each other on a circular track of radius $R$. Initially they are at the same point on the track and will run in same direction .The coach ordered them to run $X$ rounds of the circular field. Patlu wants to know how many times they will meet after the race starts and  before any of them finishes $X$ rounds. But he is busy in warm up so he wants you to calculate this. You are given speed of both Motu and Patlu ($A$ and $B$). 

-----Input:-----
- First line will contain $T$, number of testcases. Then the testcases follow. 
- Each testcase contains of a single line of input, four integers $X, R, A, B$. 

-----Output:-----
For each testcase, output in a single line answer the number of times whey will meet before any of them completes $X$ rounds.

-----Constraints-----
- $1 \leq T \leq 1000$
- $1 \leq R \leq 10^9$
- $1 \leq X \leq 10^9$
- $1 \leq A \leq 10^9$
- $1 \leq B \leq 10^9$
- Speed of both are different

-----Sample Input:-----
2
3 10 2 5
2 20 5 10

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

```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 = "#lannisters don't act like fools\n\n\n'''And who are you, the proud lord said,\nThat I must bow so low?\nOnly a cat of a different coat,\nThat's all the truth I know.\nIn a coat of gold or a coat of red,\nA lion still has claws,\nAnd mine are long and sharp, my lord,\nAs long and sharp as yours.\nAnd so he spoke, and so he spoke,\nThat lord of Castamere,\nBut now the rains weep o'er his hall,\nWith no one there to hear.\nYes now the rains weep o'er his hall,\nAnd not a soul to hear.'''\n\n\n\n\n\n\n\n\n\n\n\n\nimport math\n\nt = int(input())\n\nfor _ in range(t):\n z = input().split()\n x = int(z[0])\n r = int(z[1])\n a = int(z[2])\n b = int(z[3])\n length = 2*math.pi*r\n if b>a:\n  temp = a\n  a = b\n  b = temp\n first_meet = length/(a-b)\n total_time = (x*length)/a\n if(first_meet == total_time):\n  ans = 0\n else:\n  ans = int(total_time/first_meet)\n print(ans)\n\n"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 13135