Chef was driving on a highway at a speed of X km/hour.

To avoid accidents, there are fine imposed on overspeeding as follows:
No fine if the speed of the car ≤ 70 km/hour.
Rs 500 fine if the speed of the car is strictly greater than 70 and ≤ 100.
Rs 2000 fine if the speed of the car is strictly greater than 100.

Determine the fine Chef needs to pay.

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

- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case consists of a single integer X denoting the speed of Chef's car.

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

For each test case, output the fine paid by Chef.

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

$1 ≤ T ≤ 200$
$1 ≤ X ≤ 200$

----- Sample Input 1 ------ 
7
40
110
70
100
69
101
85

----- Sample Output 1 ------ 
0
2000
0
500
0
2000
500

----- explanation 1 ------ 
Test case $1$: The speed is $≤ 70$. Thus, Chef does not need to pay any fine.

Test case $2$: The speed is greater than $100$. Thus, Chef needs to pay $2000$ as fine.

Test case $3$: The speed is $≤ 70$. Thus, Chef does not need to pay any fine.

Test case $4$: The speed is greater than $70$ and $≤ 100$. Thus, Chef needs to pay $500$ as fine amount.

Test case $5$: The speed is $≤ 70$. Thus, Chef does not need to pay any fine.

Test case $6$: The speed is greater than $100$. Thus, Chef needs to pay $2000$ as fine.

Test case $7$: The speed is greater than $70$ and $≤ 100$. Thus, Chef needs to pay $500$ as fine amount.

Difficulty: EASY

Starter code:

Solutions:
c = int(input())
for i in range(c):
	x = int(input())
	if x > 100:
		print('2000')
	elif x > 70 and x <= 100:
		print('500')
	else:
		print('0')


T = int(input())
for i in range(T):
	x = int(input())
	if x <= 70:
		print('0')
	elif 70 < x <= 100:
		print('500')
	else:
		print('2000')


for t in range(int(input())):
	i = int(input())
	if i <= 70:
		print(0)
	elif i > 100:
		print(2000)
	else:
		print(500)


t = int(input())
for i in range(t):
	x = int(input())
	if x <= 70:
		print('0')
	elif x > 70 and x <= 100:
		print('500')
	elif x > 100:
		print('2000')


t = int(input())
for _ in range(t):
	speed = int(input())
	print(0 if speed <= 70 else 2000 if speed > 100 else 500)


T = int(input())
for i in range(T):
	X = int(input())
	if X <= 70:
		print('0')
	elif X > 70 and X <= 100:
		print('500')
	elif X > 100:
		print('2000')


test = int(input())
ans = []
while test:
	test = test - 1
	X = int(input())
	if X <= 70:
		ans.append(0)
	elif X > 70 and X <= 100:
		ans.append(500)
	elif X > 100:
		ans.append(2000)
for i in ans:
	print(i)


t = int(input())
for _ in range(t):
	n = int(input())
	if n <= 70:
		print(0)
	elif n > 70 and n <= 100:
		print(500)
	else:
		print(2000)


t = int(input())
for kjdf in range(t):
	x = int(input())
	if x > 70 and x <= 100:
		print('500')
	elif x > 100:
		print('2000')
	else:
		print('0')


t = int(input())
for _ in range(t):
	x = int(input())
	if x <= 70:
		print(0)
	elif x > 100:
		print(2000)
	elif x <= 100:
		print(500)


T = int(input())
for CRICKETER in range(T):
	X = int(input())
	if X <= 70:
		print('0')
	elif X > 70 and X <= 100:
		print('500')
	else:
		print('2000')


a = int(input())
for i in range(a):
	b = int(input())
	if b <= 70:
		print('0')
	elif b > 100:
		print('2000')
	else:
		print('500')


test_cases = int(input())
for i in range(test_cases):
	speed = int(input())
	if speed <= 70:
		print(0)
	elif speed > 70 and speed <= 100:
		print(500)
	else:
		print(2000)


t = int(input())
while t > 0:
	x = int(input())
	if x <= 70:
		print(0)
	elif x > 70 and x < 101:
		print(500)
	else:
		print(2000)
	t = t - 1


n = int(input())
for i in range(n):
	m = int(input())
	if m <= 70:
		print('0')
	elif m > 70 and m <= 100:
		print('500')
	else:
		print('2000')


n = int(input())
while n > 0:
	m = int(input())
	if m <= 70:
		print('0')
	elif m > 70 and m <= 100:
		print('500')
	else:
		print('2000')
	n -= 1


c = int(input())
for i in range(c):
	a = int(input())
	if a <= 70:
		print('0')
	elif a > 70 and a <= 100:
		print('500')
	elif a > 100:
		print('2000')


T = int(input())
for _ in range(T):
	x = int(input())
	if x <= 70:
		print(0)
	elif x > 70 and x <= 100:
		print(500)
	else:
		print(2000)


a = int(input())
for i in range(a):
	s = int(input())
	if s <= 70:
		print(0)
	elif s > 70 and s <= 100:
		print(500)
	else:
		print(2000)


t = int(input())
for ts in range(t):
	x = int(input())
	if x <= 70:
		print('0')
	elif x <= 100:
		print('500')
	else:
		print('2000')


cases = int(input())
for case in range(cases):
	x = int(input())
	if x <= 70:
		print(0)
	elif x > 100:
		print(2000)
	else:
		print(500)