# coding: utf-8
# Here your code !

n = int(input())
e = [[int(i) for i in input().split()] for i in range(n)] 
for i in e:
    a = max(i)
    i.remove(a)
    if a*a == i[0]*i[0]+ i[1]*i[1]:
        print("YES")
    else:
        print("NO") n = int(input()) n int(input()) int input() input [int(i) for i in input().split()] for i in range(n) for i in range(n) i range(n) range n for i in range(n) [int(i) for i in input().split()] e = [[int(i) for i in input().split()] for i in range(n)] e [[int(i) for i in input().split()] for i in range(n)] for i in e:
    a = max(i)
    i.remove(a)
    if a*a == i[0]*i[0]+ i[1]*i[1]:
        print("YES")
    else:
        print("NO") i e a = max(i) a max(i) max i i.remove(a) i.remove i remove a if a*a == i[0]*i[0]+ i[1]*i[1]:
        print("YES")
    else:
        print("NO") a*a == i[0]*i[0]+ i[1]*i[1] a*a a a i[0]*i[0]+ i[1]*i[1] i[0]*i[0] i[0] i 0 i[0] i 0 i[1]*i[1] i[1] i 1 i[1] i 1 print("YES") print "YES" print("NO") print "NO" e = [[int(i) for i in input().split()] for i in range(n)] [[int(i) for i in input().split()] for i in range(n)] e n = int(input()) int(input()) n a = max(i) max(i) a
# coding: utf-8
# Here your code !

n = int(input())
e = [[int(i) for i in input().split()] for i in range(n)] 
for i in e:
    a = max(i)
    i.remove(a)
    if a*a == i[0]*i[0]+ i[1]*i[1]:
        print("YES")
    else:
        print("NO")