https://www.acmicpc.net/problem/7510
n=int(input())
for i in range(1,n+1):
a,b,c=map(int,input().split())
sum=a*a+b*b+c*c
ma=max(a,max(b,c))
if sum==2*ma*ma:
print("Scenario #%d:"%i)
print("yes\n")
else:
print("Scenario #%d:"%i)
print("no\n")