N = int(input())
lst = [list(map(int, input().split())) for _ in range(N)]
for i in lst:
    i.sort()
    if i[0] ** 2 + i[1] ** 2 == i[2] ** 2:
        print('YES')
    else:
        print('NO')
 N = int(input()) N int(input()) int input() input list(map(int, input().split())) for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split lst = [list(map(int, input().split())) for _ in range(N)] lst [list(map(int, input().split())) for _ in range(N)] for i in lst:
    i.sort()
    if i[0] ** 2 + i[1] ** 2 == i[2] ** 2:
        print('YES')
    else:
        print('NO') i lst i.sort() i.sort i sort if i[0] ** 2 + i[1] ** 2 == i[2] ** 2:
        print('YES')
    else:
        print('NO') i[0] ** 2 + i[1] ** 2 == i[2] ** 2 i[0] ** 2 + i[1] ** 2 i[0] ** 2 i[0] i 0 2 i[1] ** 2 i[1] i 1 2 i[2] ** 2 i[2] i 2 2 print('YES') print 'YES' print('NO') print 'NO' N = int(input()) int(input()) N lst = [list(map(int, input().split())) for _ in range(N)] [list(map(int, input().split())) for _ in range(N)] lst
N = int(input())
lst = [list(map(int, input().split())) for _ in range(N)]
for i in lst:
    i.sort()
    if i[0] ** 2 + i[1] ** 2 == i[2] ** 2:
        print('YES')
    else:
        print('NO')

