Devendra just had a million-dollar idea and he needs funds to startup. He was recently invited to Sasta Shark Tank (A TV show where entrepreneurs pitch their ideas to investors hoping to get investment in return).

He was offered deals from two investors. The first investor offers  A dollars for 10% of his company and the second investor offers B dollars for 20% of his company. Devendra will accept the offer from the investor whose valuation of the company is more. Determine which offer will Devendra accept or if both the offers are equally good.

For example, if the first investor offers 300 dollars for 10% of the company, then the first investor's valuation of the company is 3000 dollars since 10% of 3000 = 300. If the second investor offers 500 dollars for 20% of the company, then the second investor's valuation of the company is 2500 dollars since 20% of 2500 = 500.

------ 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 two integers A and B - the amount offered by first investor for 10% of Devendra's company and the amount offered by second investor for 20% of Devendra's company respectively.

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

For each test case, Output FIRST if Devendra should accept the first investor's deal, output SECOND if he should accept the second investor's deal, otherwise output ANY if both deals are equally good.

You may print each character of the strings in uppercase or lowercase (for example, the strings "FiRst", "First", "FIRST", and "FIrst" will all be treated as identical).

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

$1 ≤ T ≤ 100$
$100 ≤ A,B ≤ 10000$
$A$ and $B$ are multiples of $100$

----- Sample Input 1 ------ 
3
100 200
200 100
200 500

----- Sample Output 1 ------ 
ANY
FIRST
SECOND
----- explanation 1 ------ 
Test case 1: First investor's valuation of Devendra's company was $1000$ since $10$% of $1000 = 100$ which is the amount he offered for $10$% of the company.

Second investor's valuation of Devendra's company was also $1000$ since $20$% of $1000 = 200$ which is the amount he offered for $20$% of the company.

Therefore he can accept any of the deal.

Test case 2: First investor offered a better deal as he valued Devendra's company at $2000$ dollars (since $10$% of $2000 = 200$) compared to the second investor who valued Devendra's company at $500$ dollars (since $20$% of $500 = 100$).

Test case 3: Second investor offered a better deal as he valued Devendra's company at $2500$ dollars compared to the first investor who valued Devendra's company $2000$ dollars.

Source: codechef | Difficulty: EASY
Tags: Mathematics


Solutions:
for i in range(int(input())):
	(a, b) = map(int, input().split())
	c = b / 2
	if a == c:
		print('ANY')
	elif a > c:
		print('FIRST')
	else:
		print('SECOND')


t = int(input())
while t > 0:
	(a, b) = map(int, input().split())
	print('FIRST' if a * 100 / 10 > b * 100 / 20 else 'ANY' if a * 100 / 10 == b * 100 / 20 else 'SECOND')
	t -= 1


for i in range(int(input())):
	(A, B) = map(int, input().split())
	if A * 100 / 10 == B * 100 / 20:
		print('ANY')
	elif A * 100 / 10 >= B * 100 / 20:
		print('FIRST')
	elif A * 100 / 10 <= B * 100 / 20:
		print('SECOND')


for i in range(int(input())):
	(a, b) = list(map(int, input().split()))
	c = a * 100 // 10
	d = b * 100 // 20
	if c == d:
		print('ANY')
	elif c > d:
		print('FIRST')
	else:
		print('SECOND')


for i in range(int(input())):
	(a, b) = map(int, input().split())
	if a * 10 > b * 5:
		print('FIRST')
	elif a * 10 == b * 5:
		print('ANY')
	else:
		print('SECOND')


for i in range(int(input())):
	(x, y) = map(int, input().split())
	if x * 100 // 10 > y * 100 // 20:
		print('FIRST')
	elif x * 100 // 10 < y * 100 // 20:
		print('SECOND')
	elif x * 100 // 10 == y * 100 // 20:
		print('ANY')


t = int(input())
for i in range(t):
	(A, B) = list(map(int, input().split()))
	a = A / 0.1
	b = B / 0.2
	if a == b:
		print('ANY')
	elif a > b:
		print('FIRST')
	else:
		print('SECOND')


t = int(input())
for _ in range(t):
	(a, b) = map(int, input().split())
	x = a * 100 / 10
	y = b * 100 / 20
	if x > y:
		print('FIRST')
	elif x == y:
		print('ANY')
	else:
		print('SECOND')


import math
T = int(input())
for i in range(T):
	(A, B) = map(int, input().split())
	if A * 10 > B * 5:
		print('FIRST')
	elif A * 10 < B * 5:
		print('SECOND')
	else:
		print('ANY')


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	t1 = x * 100 / 10
	t2 = y * 100 / 20
	if t1 == t2:
		print('ANY')
	elif t1 > t2:
		print('FIRST')
	else:
		print('SECOND')


for i in range(int(input())):
	(a, b) = map(int, input().split())
	a /= 0.1
	b /= 0.2
	if a > b:
		print('FIRST')
	elif a < b:
		print('SECOND')
	elif a == b:
		print('ANY')


for t in range(int(input())):
	(a, b) = map(int, input().split())
	investment_a = a * 10
	investment_b = b * 5
	if investment_a < investment_b:
		print('SECOND')
	elif investment_a > investment_b:
		print('FIRST')
	else:
		print('ANY')


t = int(input())
for i in range(t):
	(A, B) = map(int, input().split())
	if 10 * A > 5 * B:
		print('FIRST')
	elif 10 * A < 5 * B:
		print('SECOND')
	else:
		print('ANY')


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	c = 10 * x
	d = 5 * y
	if c > d:
		print('FIRST')
	if c < d:
		print('SECOND')
	if c == d:
		print('ANY')


def SSTank(a, b):
	x = a * 100 // 10
	y = b * 100 // 20
	if x > y:
		print('FIRST')
	elif x == y:
		print('ANY')
	else:
		print('SECOND')
for i in range(int(input())):
	(a, b) = map(int, input().split())
	SSTank(a, b)


for _ in range(int(input())):
	(A, B) = map(int, input().split())
	val1 = A / 0.1
	val2 = B / 0.2
	if val1 > val2:
		print('FIRST')
	elif val2 > val1:
		print('SECOND')
	else:
		print('ANY')


n = int(input())
for i in range(n):
	(a, b) = map(int, input().split())
	s = a * 100 / 10
	t = b * 100 / 20
	if s == t:
		print('ANY')
	elif s > t:
		print('FIRST')
	else:
		print('SECOND')


t = int(input())
for i in range(t):
	(x, y) = map(int, input().split())
	z1 = x * 10
	z2 = y * 5
	if z1 > z2:
		print('FIRST')
	elif z1 < z2:
		print('SECOND')
	else:
		print('ANY')


t = int(input())
while t > 0:
	(a, b) = map(int, input().split())
	if a * 10 > b * 10 // 2:
		print('FIRST')
	elif a * 10 < b * 10 // 2:
		print('SECOND')
	else:
		print('ANY')
	t -= 1


t = int(input())
for _ in range(t):
	(first_10, second_20) = map(int, input().split())
	if first_10 * 10 > second_20 * 5:
		print('FIRST')
	elif first_10 * 10 < second_20 * 5:
		print('SECOND')
	else:
		print('ANY')


n = int(input())
for i in range(0, n):
	(a, b) = map(int, input().split())
	x = a * 100 // 10
	y = b * 100 // 20
	if x == y:
		print('ANY')
	elif x > y:
		print('FIRST')
	else:
		print('SECOND')


T = int(input())
for i in range(T):
	(A, B) = map(int, input().split())
	if A / 0.1 > B / 0.2:
		print('FIRST')
	elif A / 0.1 == B / 0.2:
		print('ANY')
	else:
		print('SECOND')


for _ in range(int(input())):
	(a, b) = map(int, input().split())
	c = a * 10
	d = b * 5
	if c == d:
		print('ANY')
	elif c > d:
		print('FIRST')
	elif c < d:
		print('SECOND')


T = int(input())
for i in range(T):
	(a, b) = map(int, input().split())
	if 100 * a / 10 > 100 * b / 20:
		print('FIRST')
	elif 100 * a // 10 < 100 * b // 20:
		print('SECOND')
	else:
		print('ANY')


T = int(input())
while T > 0:
	(A, B) = map(int, input().split())
	if A * 10 > B * 5:
		print('FIRST')
	elif A * 10 == B * 5:
		print('ANY')
	else:
		print('SECOND')
	T = T - 1


num = int(input())
for i in range(num):
	(x, y) = map(int, input().split())
	if x * 10 > y * 5:
		print('FIRST')
	elif x * 10 < y * 5:
		print('SECOND')
	else:
		print('ANY')


T = int(input())
for i in range(T):
	(A, B) = map(int, input().split())
	result = A // 10 * 100
	ans = B // 20 * 100
	if result > ans:
		print('FIRST')
	elif result < ans:
		print('SECOND')
	else:
		print('ANY')