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