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