#!/usr/bin/python
import sys

t = raw_input()
for i in range(int(t)):
    x = [int(s) for s in raw_input().split()]
    x.sort()
    if x[0] ** 2 + x[1] ** 2 == x[2] ** 2:
        print "YES"
    else:
        print "NO" import sys sys t = raw_input() t raw_input() raw_input for i in range(int(t)):
    x = [int(s) for s in raw_input().split()]
    x.sort()
    if x[0] ** 2 + x[1] ** 2 == x[2] ** 2:
        print "YES"
    else:
        print "NO" i range(int(t)) range int(t) int t int(s) for s in raw_input().split() for s in raw_input().split() s raw_input().split() ().split () raw_input split for s in raw_input().split() int(s) int s x = [int(s) for s in raw_input().split()] x [int(s) for s in raw_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 print x = [int(s) for s in raw_input().split()] [int(s) for s in raw_input().split()] x t = raw_input() raw_input() t
#!/usr/bin/python
import sys

t = raw_input()
for i in range(int(t)):
    x = [int(s) for s in raw_input().split()]
    x.sort()
    if x[0] ** 2 + x[1] ** 2 == x[2] ** 2:
        print "YES"
    else:
        print "NO"