For each bill you pay using CRED, you earn X CRED coins.  
At CodeChef store, each bag is worth 100 CRED coins. 

Chef pays Y number of bills using CRED. Find the maximum number of bags he can get from the CodeChef store.

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

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

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

For each test case, output in a single line - the maximum number of bags Chef can get from the CodeChef store.

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

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

------ subtasks ------ 

Subtask 1 (100 points): Original constraints.

----- Sample Input 1 ------ 
3
10 10
20 4
70 7
----- Sample Output 1 ------ 
1
0
4
----- explanation 1 ------ 
Test Case $1$: For each bill payment, one receives $10$ CRED coins. Chef pays $10$ bills using CRED. Thus, he receives $100$ CRED coins. Chef can get $1$ bag from the CodeChef store using these coins.

Test Case $2$:  For each bill payment, one receives $20$ CRED coins. Chef pays $4$ bills using CRED. Thus, he receives $80$ CRED coins. Chef cannot get any bag from the CodeChef store using these coins.

Test Case $3$: For each bill payment, one receives $70$ CRED coins. Chef pays $7$ bills using CRED. Thus, he receives $490$ CRED coins. Chef can get at most $4$ bags from the CodeChef store using these coins.

Source: codechef | Difficulty: EASY
Tags: Mathematics


Solutions:
t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	r = x * y // 100
	print(r)


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


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


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


for _ in range(int(input())):
	(x, y) = map(int, input().split())
	p = x * y
	if p < 100:
		print(0)
	else:
		print(p // 100)


for i in range(int(input())):
	(x_coins, y_paid) = [int(x) for x in input().split()]
	total = x_coins * y_paid
	print(total // 100)


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


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


t = int(input())
while t:
	(x, y) = map(int, input().split())
	print(int(0.01 * x * y))
	t -= 1


n = int(input())
c = 0
for i in range(n):
	(x, y) = map(int, input().split())
	a = x * y
	print(a // 100)


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


for _ in range(int(input())):
	(a, b) = list(map(int, input().split()))
	print(a * b // 100)


for i in range(int(input())):
	(X, Y) = map(int, input().split())
	if X * Y < 100:
		print('0')
	else:
		print(int(X * Y / 100))


def cred(x, y):
	d = x * y
	return d // 100
t = int(input())
for i in range(1, t + 1):
	(x, y) = map(int, input().split())
	res = cred(x, y)
	print(res)


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


n = int(input())
for i in range(n):
	(x, y) = map(int, input().split())
	coins = x * y
	bags = int(coins / 100)
	print(bags)


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


t = int(input())
while t != 0:
	(a, b) = map(int, input().split())
	s = a * b
	d = s // 100
	print(d)
	t = t - 1


T = int(input())
for i in range(T):
	(x, y) = map(int, input().split())
	a = x * y
	(b, c) = divmod(a, 100)
	print(b)


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


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


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


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


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	bags = x * y
	bag1 = bags / 100
	print(int(bag1))


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


T = int(input())
for i in range(T):
	(X, Y) = [int(i) for i in input().split(' ')]
	bags = X * Y // 100
	print(bags)


import math
T = int(input())
for X in range(T):
	(X, Y) = map(int, input().split())
	print(math.floor(X * Y / 100))


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


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


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


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


from math import floor
for i in range(int(input())):
	(a, b) = map(int, input().split())
	a *= b
	a /= 100
	print(floor(a))


n = int(input())
for i in range(n):
	a = list(map(int, input().split(' ')))
	print(a[0] * a[1] // 100)


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


import math
d = int(input())
for x in range(d):
	(x, y) = map(int, input().split())
	print(math.floor(x * y / 100))


T = int(input())
for num in range(0, T):
	(X, Y) = map(int, input().split())
	b = X * Y
	a = b // 100
	print(a)


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


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


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


T = int(input())
for tc in range(T):
	(x, y) = map(int, input().split())
	z = x * y
	print(z // 100)


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


t = int(input())
for i in range(0, t):
	(x, y) = map(int, input().split())
	c = x * y
	print(int(c / 100))


n = int(input())
l = [list(map(int, input().split())) for i in range(n)]
for i in l:
	k = i[0] * i[1]
	print(k // 100)