n = int(raw_input())
for i in range(n):
    num = map(int, raw_input().split())
    num.sort(reverse=True)
    if num[0]**2 == num[1]**2 + num[2]**2:
        print "YES"
    else:
        print "NO" n = int(raw_input()) n int(raw_input()) int raw_input() raw_input for i in range(n):
    num = map(int, raw_input().split())
    num.sort(reverse=True)
    if num[0]**2 == num[1]**2 + num[2]**2:
        print "YES"
    else:
        print "NO" i range(n) range n num = map(int, raw_input().split()) num map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split num.sort(reverse=True) num.sort num sort reverse=True reverse True if num[0]**2 == num[1]**2 + num[2]**2:
        print "YES"
    else:
        print "NO" num[0]**2 == num[1]**2 + num[2]**2 num[0]**2 num[0] num 0 2 num[1]**2 + num[2]**2 num[1]**2 num[1] num 1 2 num[2]**2 num[2] num 2 2 print print n = int(raw_input()) int(raw_input()) n num = map(int, raw_input().split()) map(int, raw_input().split()) num
n = int(raw_input())
for i in range(n):
    num = map(int, raw_input().split())
    num.sort(reverse=True)
    if num[0]**2 == num[1]**2 + num[2]**2:
        print "YES"
    else:
        print "NO"
