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