Chef is ordering food online (instead of cooking) and the bill comes out to be Rs. X. Chef can use one of the following two coupons to avail a discount.
Get 10 percent off on the bill amount
Get a flat discount of Rs. 100 on the bill amount

What is the maximum discount Chef can avail?

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

- The first line contains a single integer T - the number of test cases. Then the test cases follow.
- The first and only line of each test case contains a single integer X - the bill amount before discount.

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

For each testcase, output the maximum discount Chef can avail.

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

$1 ≤ T ≤ 100$
$100 ≤ X ≤ 10000$
$X$ is a multiple of $100$.

----- Sample Input 1 ------ 
3
300
1300
1000

----- Sample Output 1 ------ 
100
130
100

----- explanation 1 ------ 
Test case 1: Using the second coupon, Chef can get a flat discount of Rs. $100$, which is maximum.

Test case 2: Using the first coupon, Chef can get a $10$ percent discount of Rs. $130$, which is maximum.

Test case 3: No matter which coupon Chef chooses Chef will get a discount of Rs. $100$.

Difficulty: EASY

Solutions:
n = int(input())
for i in range(n):
	x = int(input())
	print(max(int(0.1 * x), 100))


n = int(input())
for _ in range(n):
	a = int(input())
	b = int(a * 0.1)
	c = 100
	if b > c:
		print(b)
	else:
		print(c)


for i in range(int(input())):
	a = int(input())
	b = int(a * 0.1)
	c = 100
	if b > c:
		print(b)
	else:
		print(c)


s = int(input())
for a in range(s):
	a = int(input())
	if a * 0.1 > 100:
		print(int(a * 0.1))
	else:
		print(100)


t = int(input())
for i in range(t):
	x = int(input())
	d = x * 0.1
	c = x - d
	e = x - 100
	if c > e:
		print(100)
	else:
		print(int(d))


for t in range(int(input())):
	x = int(input())
	print(max(int(0.1 * x), 100))


t = int(input())
for i in range(t):
	x = int(input())
	a = int(x * 0.1)
	b = 100
	if a > b:
		print(a)
	else:
		print(b)


t = int(input())
for i in range(t):
	x = int(input())
	if x <= 1000:
		print(100)
	else:
		print(int(x / 10))


a = int(input())
for i in range(a):
	x = int(input())
	l = max(int(0.1 * x), 100)
	print(l)


for _ in range(int(input())):
	x = int(input())
	print(max(int(x * 0.1), 100))


T = int(input())
for i in range(T):
	X = int(input())
	discount1 = int(X * 10 / 100)
	if discount1 < 100:
		print(100)
	else:
		print(discount1)


n = int(input())
for i in range(0, n):
	a = int(input())
	if a * (1 / 10) < 100:
		print(100)
	else:
		print(int(a * (1 / 10)))


T = int(input())
for i in range(T):
	X = int(input())
	bill = X * 0.1
	if bill > 100:
		print(int(bill))
	else:
		print(100)


T = int(input())
for i in range(0, T):
	X = int(input())
	p = X / 10
	d = X - 100
	a = X - p
	b = X - d
	if p > b:
		print(int(p))
	else:
		print(b)


a = int(input())
for i in range(a):
	b = int(input())
	p = b * 10 / 100
	q = b = 100
	if p > q:
		print(int(p))
	else:
		print(q)


for _ in range(int(input())):
	x = int(input())
	r1 = int(10 * x / 100)
	d1 = x - 10 * x / 100
	d2 = x - 100
	if d1 < d2:
		print(r1)
	else:
		print('100')


t = int(input())
for i in range(t):
	x = int(input())
	y = int(x * 0.1)
	z = 100
	if y > z:
		print(y)
	else:
		print(z)


t = int(input())
while t:
	x = int(input())
	print(int(x * 0.1) if int(x * 0.1) >= 100 else 100)
	t -= 1


T = int(input())
for t in range(T):
	X = int(input())
	if X >= 1000:
		print(int(X / 10))
	else:
		print(100)


for _ in range(int(input())):
	a = int(input())
	if a // 10 > 100:
		print(a // 10)
	else:
		print(100)


x = int(input())
for i in range(x):
	a = int(input())
	c1 = int(a * 10 / 100)
	c2 = 100
	if c1 >= c2:
		print(c1)
	else:
		print(c2)


n = int(input())
for i in range(n):
	a = int(input())
	if a < 1000:
		print('100')
	if a >= 1000:
		b = a // 10
		print(b)


for i in range(int(input())):
	X = int(input())
	first_coupon = int(0.1 * X)
	second_coupon = 100
	print(max(first_coupon, second_coupon))


t = int(input())
for i in range(t):
	n = int(input())
	print(max(n // 10, 100))


n = int(input())
for i in range(n):
	x = int(input())
	p = int(10 / 100 * x)
	q = 100
	if p >= q:
		print(p)
	else:
		print(q)


T = int(input())
for i in range(T):
	X = int(input())
	F = int(0.1 * X)
	S = 100
	if F > S:
		print(F)
	else:
		print(S)


for _ in range(int(input())):
	n = int(input())
	if n * 0.1 < 100:
		print('100')
	else:
		print(int(0.1 * n))


T = int(input())
for i in range(T):
	a = int(input())
	if a > 1000:
		print(a // 10)
	else:
		print(100)


for i in range(int(input())):
	w = int(input())
	print(int(max(w * 0.1, 100)))


T = int(input())
for i in range(T):
	X = int(input())
	print(max(X // 10, 100))


a = int(input())
for i in range(a):
	b = int(input())
	if b < 901:
		print('100')
	else:
		print(int(b / 10))


n = int(input())
for i in range(n):
	x = int(input())
	if x <= 1000:
		print(100)
	else:
		a = x // 100 * 10
		print(a)


for _ in range(int(input())):
	x = int(input())
	y = int(x * 0.1)
	z = 100
	if y > z:
		print(y)
	else:
		print(z)


for i in range(int(input())):
	x = int(input())
	a = x * 10 // 100
	print(max(a, 100))


for i in range(int(input())):
	n = int(input())
	if n - n * 10 // 100 <= n - 100:
		print(n * 10 // 100)
	else:
		print(100)


t = int(input())
for i in range(t):
	x = int(input())
	a = 100
	b = x * 10 // 100
	if a > b:
		print(a)
	else:
		print(b)


T = int(input())
for i in range(T):
	X = int(input())
	firstDscount = X * (10 / 100)
	secondDiscount = 100
	if firstDscount > secondDiscount:
		print(int(firstDscount))
	else:
		print(secondDiscount)


for T in range(int(input())):
	X = int(input())
	discount = 100 if 100 >= 10 / 100 * X else 10 / 100 * X
	print(int(discount))


t = int(input())
for _ in range(t):
	x = int(input())
	c1 = 10 * x // 100
	c2 = 100
	print(max(c1, c2))


T = int(input())
for i in range(T):
	X = int(input())
	Y = int(X * 0.1)
	Z = 100
	if Y > Z:
		print(Y)
	else:
		print(Z)


n = int(input())
for i in range(n):
	a = list(map(int, input().split()))
	for j in a:
		t = j * 10 // 100
		if t > 100:
			print(t)
		else:
			print(100)


t = int(input())
while t > 0:
	x = int(input())
	print(max(int(0.1 * x), 100))
	t -= 1


for j in range(int(input())):
	x = int(input())
	if x > 1000:
		print(int(0.1 * x))
	else:
		print('100')


t = int(input())
for i in range(t):
	X = int(input())
	a = 100
	b = X // 10
	if X <= 1000:
		print(a)
	else:
		print(b)


t = int(input())
for i in range(t):
	n = int(input())
	pn = 1 / 10 * n
	ipn = int(pn)
	if ipn >= 100:
		print(ipn)
	else:
		print('100')


t = int(input())
for i in range(t):
	n = int(input())
	c = int(0.1 * n)
	d = 100
	print(max(c, d))


T = int(input())
for tc in range(T):
	x = int(input())
	print(max(x * 10 // 100, 100))


for _ in range(int(input())):
	X = int(input())
	Y = int(X * 0.1)
	Z = 100
	if Y > Z:
		print(Y)
	else:
		print(Z)


for i in range(int(input())):
	m = int(input())
	if m < 1000:
		print('100')
	else:
		print(m * 10 // 100)


x = int(input())
for i in range(0, x):
	A = int(input())
	m = A / 10
	n = A - 100
	p = A - m
	q = A - n
	if m > q:
		print(int(m))
	else:
		print(q)


T = int(input())
for _ in range(T):
	x = int(input())
	if x * 0.1 > 100:
		print(int(x * 0.1))
	else:
		print(100)


for i in range(int(input())):
	x = int(input())
	dis1 = x - 0.1 * x
	dis2 = x - 100
	if dis1 < dis2:
		print(int(0.1 * x))
	else:
		print(100)