
N = input()

a = []
for i in range(int(N)):
    s = input().split()
    ss = [int(s[0]), int(s[1]), int(s[2])]
    ss.sort()

    if ss[2]**2 == ss[0]**2 + ss[1]**2:
        print("YES")
    else:
        print("NO") N = input() N input() input a = [] a [] for i in range(int(N)):
    s = input().split()
    ss = [int(s[0]), int(s[1]), int(s[2])]
    ss.sort()

    if ss[2]**2 == ss[0]**2 + ss[1]**2:
        print("YES")
    else:
        print("NO") i range(int(N)) range int(N) int N s = input().split() s input().split() ().split () input split ss = [int(s[0]), int(s[1]), int(s[2])] ss [int(s[0]), int(s[1]), int(s[2])] int(s[0]) int s[0] s 0 int(s[1]) int s[1] s 1 int(s[2]) int s[2] s 2 ss.sort() ss.sort ss sort if ss[2]**2 == ss[0]**2 + ss[1]**2:
        print("YES")
    else:
        print("NO") ss[2]**2 == ss[0]**2 + ss[1]**2 ss[2]**2 ss[2] ss 2 2 ss[0]**2 + ss[1]**2 ss[0]**2 ss[0] ss 0 2 ss[1]**2 ss[1] ss 1 2 print("YES") print "YES" print("NO") print "NO" N = input() input() N s = input().split() input().split() s a = [] [] a ss = [int(s[0]), int(s[1]), int(s[2])] [int(s[0]), int(s[1]), int(s[2])] ss

N = input()

a = []
for i in range(int(N)):
    s = input().split()
    ss = [int(s[0]), int(s[1]), int(s[2])]
    ss.sort()

    if ss[2]**2 == ss[0]**2 + ss[1]**2:
        print("YES")
    else:
        print("NO")