N = int(input())
for i in range(N):
    a = [int(i) for i in input().split()]
    a.sort(reverse=True)
    if a[0]**2 == a[1]**2+a[2]**2:
        print('YES')
    else:
        print('NO') N = int(input()) N int(input()) int input() input for i in range(N):
    a = [int(i) for i in input().split()]
    a.sort(reverse=True)
    if a[0]**2 == a[1]**2+a[2]**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 a = [int(i) for i in input().split()] a [int(i) for i in input().split()] a.sort(reverse=True) a.sort a sort reverse=True reverse True if a[0]**2 == a[1]**2+a[2]**2:
        print('YES')
    else:
        print('NO') a[0]**2 == a[1]**2+a[2]**2 a[0]**2 a[0] a 0 2 a[1]**2+a[2]**2 a[1]**2 a[1] a 1 2 a[2]**2 a[2] a 2 2 print('YES') print 'YES' print('NO') print 'NO' N = int(input()) int(input()) N a = [int(i) for i in input().split()] [int(i) for i in input().split()] a
N = int(input())
for i in range(N):
    a = [int(i) for i in input().split()]
    a.sort(reverse=True)
    if a[0]**2 == a[1]**2+a[2]**2:
        print('YES')
    else:
        print('NO')
