Uttu broke his phone. He can get it repaired by spending X rupees or he can buy a new phone by spending Y rupees. Uttu wants to spend as little money as possible. Find out if it is better to get the phone repaired or to buy a new phone.

------ 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 space-separated integers X and Y — the cost of getting the phone repaired and the cost of buying a new phone.

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

For each test case, 
- output REPAIR if it is better to get the phone repaired.
- output NEW PHONE if it is better to buy a new phone.
- output ANY if both the options have the same price.

You may print each character of REPAIR, NEW PHONE and ANY in uppercase or lowercase (for example, any, ANy, Any will be considered identical).

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

$1 ≤ T ≤ 1000$
$1 ≤X, Y ≤10^{4}$

----- Sample Input 1 ------ 
3
100 1000
10000 5000
3000 3000

----- Sample Output 1 ------ 
REPAIR
NEW PHONE
ANY

----- explanation 1 ------ 
Test Case 1: It is better to get the phone repaired since $100 < 1000$.

Test Case 2: It is better to buy a new phone since $10000 > 5000$.

Test Case 3: Uttu can choose either of the two options since $3000 = 3000$.

Difficulty: EASY

Starter code:

Solutions:
for i in range(int(input())):
	(x, y) = map(int, input().split())
	if x > y:
		print('NEW PHONE')
	elif x < y:
		print('REPAIR')
	else:
		print('ANY')


t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	if X < Y:
		print('REPAIR')
	elif X > Y:
		print('NEW PHONE')
	else:
		print('ANY')


n = int(input())
for i in range(n):
	(j, k) = map(int, input().split())
	if j < k:
		print('REPAIR')
	elif j == k:
		print('ANY')
	else:
		print('NEW PHONE')


n = int(input())
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		print('NEW PHONE')
	elif a == b:
		print('ANY')
	else:
		print('REPAIR')


t = int(input())
for _ in range(t):
	(a, b) = map(int, input().split())
	if a < b:
		print('REPAIR')
	elif a > b:
		print('NEW PHONE')
	else:
		print('ANY')


t = int(input())
for i in range(t):
	str = input()
	str = str.split()
	if int(str[0]) < int(str[1]):
		print('REPAIR')
	elif int(str[0]) > int(str[1]):
		print('NEW PHONE')
	else:
		print('ANY')


t = int(input())
for i in range(t):
	l = list(map(int, input().split()))
	if l[0] < l[1]:
		print('REPAIR')
	elif l[0] > l[1]:
		print('NEW PHONE')
	else:
		print('ANY')


t = int(input())
while t != 0:
	(a, b) = map(int, input().split())
	if a < b:
		print('REPAIR')
	elif a == b:
		print('ANY')
	else:
		print('NEW PHONE')
	t = t - 1


t = int(input())
for i in range(t):
	(n, m) = map(int, input().split())
	if n < m:
		print('REPAIR')
	elif m < n:
		print('NEW PHONE')
	else:
		print('ANY')


t = int(input())
while t:
	(x, y) = map(int, input().split())
	print('REPAIR' if x < y else 'ANY' if x == y else 'NEW PHONE')
	t -= 1


def phone(x, y):
	if x > y:
		return 'NEW PHONE'
	elif x < y:
		return 'REPAIR'
	elif x == y:
		return 'ANY'
t = int(input())
for i in range(1, t + 1):
	(x, y) = map(int, input().split())
	res = phone(x, y)
	print(res)


N = int(input())
for _ in range(N):
	a = list(map(int, input().split()))
	if a[0] > a[1]:
		print('NEW PHONE')
	elif a[0] < a[1]:
		print('REPAIR')
	elif a[0] == a[1]:
		print('ANY')


n = int(input())
for i in range(n):
	lst = list(map(int, input().split()))[:2]
	if lst[0] < lst[1]:
		print('REPAIR')
	elif lst[0] > lst[1]:
		print('NEW PHONE')
	else:
		print('ANY')