# your code goes here
# there is some problem with this code i mean even for some non traingles it will print TRUE i will remove that problem soon till that this can be used as an idea to work ahead 
import sys
import math
f = sys.stdin
t = int(f.readline())
while t:
	a,b,c = [int(x) for x in (f.readline().split())] # considering points are given in sorted order
	dist1 = c-b+1
	lev1 = (-1+int(math.sqrt(1+8*a)))/2
	if (lev1*(lev1+1)/2) < a:
		lev1 += 1
	lev2 = (-1+int(math.sqrt(1+8*b)))/2
	if (lev2*(lev2+1)/2) < b:
		lev2 += 1
	lev3 = (-1+int(math.sqrt(1+8*c)))/2
	if (lev3*(lev3+1)/2) < c:
		lev3 += 1
	dist2 = lev2-lev1+1
	dist3 = lev3-lev1+1
	print dist1 , dist2 , dist3
	if dist1 == dist2 and dist1 == dist3 and dist1!=0:
		print "TRUE"
	else :
		print "FALSE"
	t-=1