import itertools
import operator

line = int(input())
inputs = [input() for _ in range(line)]

def is_right_triangle(a, b, c):
    a, b, c = list(sorted([a,b,c]))
    return a**2 + b**2 == c**2

for line in inputs:
    a, b, c = line.split()
    print("YES" if is_right_triangle(int(a), int(b), int(c)) else "NO") import itertools itertools import operator operator line = int(input()) line int(input()) int input() input input() for _ in range(line) for _ in range(line) _ range(line) range line for _ in range(line) input() input inputs = [input() for _ in range(line)] inputs [input() for _ in range(line)] def is_right_triangle(a, b, c):
    a, b, c = list(sorted([a,b,c]))
    return a**2 + b**2 == c**2 is_right_triangle a, b, c = list(sorted([a,b,c])) a list(sorted([a,b,c])) list sorted([a,b,c]) sorted [a,b,c] a b c b c return a**2 + b**2 == c**2 a**2 + b**2 == c**2 a**2 + b**2 a**2 a 2 b**2 b 2 c**2 c 2 a a b b c c for line in inputs:
    a, b, c = line.split()
    print("YES" if is_right_triangle(int(a), int(b), int(c)) else "NO") line inputs a, b, c = line.split() a line.split() line.split line split b c print("YES" if is_right_triangle(int(a), int(b), int(c)) else "NO") print "YES" if is_right_triangle(int(a), int(b), int(c)) else "NO" is_right_triangle(int(a), int(b), int(c)) is_right_triangle int(a) int a int(b) int b int(c) int c "YES" "NO" line = int(input()) int(input()) line b, c = line.split() line.split() b inputs = [input() for _ in range(line)] [input() for _ in range(line)] inputs a, b, c = line.split() line.split() a c = line.split() line.split() c def is_right_triangle(a, b, c):
    a, b, c = list(sorted([a,b,c]))
    return a**2 + b**2 == c**2 def is_right_triangle(a, b, c):
    a, b, c = list(sorted([a,b,c]))
    return a**2 + b**2 == c**2 is_right_triangle
import itertools
import operator

line = int(input())
inputs = [input() for _ in range(line)]

def is_right_triangle(a, b, c):
    a, b, c = list(sorted([a,b,c]))
    return a**2 + b**2 == c**2

for line in inputs:
    a, b, c = line.split()
    print("YES" if is_right_triangle(int(a), int(b), int(c)) else "NO")