N = int(input())
for i in range(N):
    triangle = sorted([int(n) for n in input().split()])
    if triangle[0]**2 + triangle[1]**2 == triangle[2]**2:
        print('YES')
    else:
        print('NO')
 N = int(input()) N int(input()) int input() input for i in range(N):
    triangle = sorted([int(n) for n in input().split()])
    if triangle[0]**2 + triangle[1]**2 == triangle[2]**2:
        print('YES')
    else:
        print('NO') i range(N) range N int(n) for n in input().split() for n in input().split() n input().split() ().split () input split for n in input().split() int(n) int n triangle = sorted([int(n) for n in input().split()]) triangle sorted([int(n) for n in input().split()]) sorted [int(n) for n in input().split()] if triangle[0]**2 + triangle[1]**2 == triangle[2]**2:
        print('YES')
    else:
        print('NO') triangle[0]**2 + triangle[1]**2 == triangle[2]**2 triangle[0]**2 + triangle[1]**2 triangle[0]**2 triangle[0] triangle 0 2 triangle[1]**2 triangle[1] triangle 1 2 triangle[2]**2 triangle[2] triangle 2 2 print('YES') print 'YES' print('NO') print 'NO' N = int(input()) int(input()) N triangle = sorted([int(n) for n in input().split()]) sorted([int(n) for n in input().split()]) triangle
N = int(input())
for i in range(N):
    triangle = sorted([int(n) for n in input().split()])
    if triangle[0]**2 + triangle[1]**2 == triangle[2]**2:
        print('YES')
    else:
        print('NO')

