n = int(input())
data = [sorted(map(int, input().split(' '))) for i in range(n)]

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

for d in data:
    if d[0]**2 + d[1]**2 == d[2]**2:
        print('YES')
    else:
        print('NO')