A geyser has a capacity of X litres of water and a bucket has a capacity of Y litres of water.

One person requires exactly 2 buckets of water to take a bath. Find the maximum number of people that can take bath using water from one completely filled geyser..

------ Input Format ------ 

- First line will contain T, number of test cases. Then the test cases follow.
- Each test case contains a single line of input, two integers X, Y.

------ Output Format ------ 

For each test case, output the maximum number of people that can take bath.

------ Constraints ------ 

$1 ≤ T ≤ 1000$
$1 ≤ X, Y ≤ 100$

----- Sample Input 1 ------ 
4
10 6
25 1
100 10
30 40

----- Sample Output 1 ------ 
0
12
5
0

----- explanation 1 ------ 
Test Case $1$: One bucket has a capacity of $6$ litres. This means that one person requires $2\cdot 6 = 12$ litres of water to take a bath. Since this is less than the total water present in geyser, $0$ people can take bath.

Test Case $2$: One bucket has a capacity of $1$ litre. This means that one person requires $2\cdot 1 = 2$ litres of water to take a bath. The total amount of water present in geyser is $25$ litres. Thus, $12$ people can take bath. Note that $1$ litre water would remain unused in the geyser.

Test Case $3$: One bucket has a capacity of $10$ litres. This means that one person requires $2\cdot 10 = 20$ litres of water to take a bath. The total amount of water present in geyser is $100$ litres. Thus, $5$ people can take bath. Note that $0$ litres of water would remain unused in the geyser after this.

Difficulty: EASY

Solutions:
n = int(input())
for i in range(n):
	(a, b) = map(int, input().split())
	p = b * 2
	print(a // p)


for i in range(int(input())):
	(a, b) = map(int, input().split())
	ba = 2 * b
	x = a // ba
	print(x)


t = int(input())
for tc in range(t):
	(x, y) = map(int, input().split())
	if x % y == 0:
		print(x // y // 2)
	else:
		print(x // y // 2)


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	x1 = y * 2
	if x < x1:
		print('0')
	else:
		print(x // x1)


t = int(input())
for t in range(t):
	(x, y) = map(int, input().split())
	z = 2 * y
	print(x // z)


t = int(input())
for i in range(t):
	(x, y) = list(map(int, input().split()))
	val1 = y * 2
	ans = x / val1
	print(int(ans))


t = int(input())
for u in range(t):
	(X, Y) = list(map(int, input().split()))
	print(X // (2 * Y))


T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	rp = Y * 2
	print(X // rp)


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	n = 2 * y
	m = x // n
	if x < n:
		print(0)
	else:
		print(m)


for i in range(int(input())):
	(x, y) = map(int, input().split())
	print(x // (2 * y))


T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	if X >= 2 * Y:
		print(int(X / (2 * Y)))
	else:
		print(0)


for _ in range(int(input())):
	(x, y) = map(int, input().split())
	print(x // (y * 2))


T = int(input())
for t in range(T):
	(X, Y) = map(int, input().split())
	Z = 2 * Y
	print(X // Z)


for _ in range(int(input())):
	(X, Y) = map(int, input().split())
	bucket = Y * 2
	print(X // bucket)


t = int(input())
for i in range(t):
	(a, b) = map(int, input().split())
	print(a // (b * 2))


a = int(input())
for i in range(a):
	(b, c) = map(int, input().split())
	d = c * 2
	print(b // d)


T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	P = X / 2
	B = P / Y
	print(int(B))


import math
t = int(input())
for i in range(t):
	(x, y) = map(int, input().split(' '))
	if x < 2 * y:
		print(0)
	else:
		print(x // (2 * y))


t = int(input())
for i in range(t):
	(m, n) = map(int, input().split())
	print(m // (n * 2))


t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	a = Y * 2
	if X >= a:
		b = X // a
		print(b)
	else:
		print(0)


def bath(x, y):
	if x < 2 * y:
		return '0'
	else:
		return x // (2 * y)
t = int(input())
for i in range(0, t):
	(x, y) = map(int, input().split())
	print(bath(x, y))


a = int(input())
for s in range(a):
	(x, y) = map(int, input().split())
	r = 2 * y
	print(int(x / r))


t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	print(X // (2 * Y))


t = int(input())
for i in range(t):
	(a, b) = map(int, input().split())
	w = b * 2
	if w > a:
		print('0')
	else:
		print(a // w)


n = int(input())
for i in range(n):
	(a, b) = map(int, input().split())
	c = b * 2
	if a >= c:
		print(a // c)
	else:
		print('0')


for _ in range(int(input())):
	(x, y) = map(int, input().split())
	per_person_water = y * 2
	print(0 if per_person_water > x else x // per_person_water)


t = int(input())
while t > 0:
	(x, y) = map(int, input().split())
	print(x // (2 * y))
	t -= 1


import math
for _ in range(int(input())):
	(a, b) = map(int, input().split())
	m = a // b
	if a // 2 < b:
		print(0)
	else:
		print(math.floor(m // 2))


t = int(input())
for _ in range(t):
	(geyser, bucket) = map(int, input().split())
	print(geyser // (bucket * 2))


T = int(input())
for i in range(T):
	(x, y) = map(int, input().split())
	if 2 * y <= x:
		print(x // (2 * y))
	else:
		print('0')


import math
t = int(input())
for _ in range(t):
	(x, y) = list(map(int, input().split()))
	z = 2 * y
	print(math.floor(x / z))


import math
for i in range(int(input())):
	(x, y) = map(int, input().split())
	a = y * 2
	print(x // a)


tc = int(input())
for _ in range(tc):
	(x, y) = map(int, input().split())
	if x < y * 2:
		a = int(x / (y * 2))
		print(a)
	else:
		b = int(x / (y * 2))
		print(b)


T = int(input())
import math as math
for T in range(0, T):
	(X, Y) = input().split()
	X = int(X)
	Y = int(Y)
	buckets = math.floor(X / Y)
	print(int(math.floor(buckets / 2)))