#condig: UTF-8
import sys
n = int(raw_input())
        
while True:
    try :
        a = sorted(map(int,raw_input().split()))
        print "YES" if a[0] ** 2 + a[1] ** 2 == a[2] ** 2 else "NO"
    except:
        break import sys sys n = int(raw_input()) n int(raw_input()) int raw_input() raw_input while True:
    try :
        a = sorted(map(int,raw_input().split()))
        print "YES" if a[0] ** 2 + a[1] ** 2 == a[2] ** 2 else "NO"
    except:
        break True try :
        a = sorted(map(int,raw_input().split()))
        print "YES" if a[0] ** 2 + a[1] ** 2 == a[2] ** 2 else "NO"
    except:
        break except:
        break break a = sorted(map(int,raw_input().split())) a sorted(map(int,raw_input().split())) sorted map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split 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" a = sorted(map(int,raw_input().split())) sorted(map(int,raw_input().split())) a n = int(raw_input()) int(raw_input()) n
#condig: UTF-8
import sys
n = int(raw_input())
        
while True:
    try :
        a = sorted(map(int,raw_input().split()))
        print "YES" if a[0] ** 2 + a[1] ** 2 == a[2] ** 2 else "NO"
    except:
        break