#!/usr/bin/env python
# -*- coding: utf-8 -*-

n = int(input())

for i in range(n):
    x = list(map(int, input().split()))
    x.sort()
    if x[0]**2 + x[1]**2 == x[2]**2:
        print('YES')
    else:
        print('NO') n = int(input()) n int(input()) int input() input for i in range(n):
    x = list(map(int, input().split()))
    x.sort()
    if x[0]**2 + x[1]**2 == x[2]**2:
        print('YES')
    else:
        print('NO') i range(n) range n x = list(map(int, input().split())) x list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split x.sort() x.sort x sort if x[0]**2 + x[1]**2 == x[2]**2:
        print('YES')
    else:
        print('NO') x[0]**2 + x[1]**2 == x[2]**2 x[0]**2 + x[1]**2 x[0]**2 x[0] x 0 2 x[1]**2 x[1] x 1 2 x[2]**2 x[2] x 2 2 print('YES') print 'YES' print('NO') print 'NO' x = list(map(int, input().split())) list(map(int, input().split())) x n = int(input()) int(input()) n
#!/usr/bin/env python
# -*- coding: utf-8 -*-

n = int(input())

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