def triangle(dataset):
    a, b, c = dataset
    if a*a + b*b == c*c:
        return 1
    return 0

N = int(input())
for _ in range(N):
    dataset = sorted(map(int, input().split()))
    flag = triangle(dataset)
    print(["NO", "YES"][flag]) def triangle(dataset):
    a, b, c = dataset
    if a*a + b*b == c*c:
        return 1
    return 0 triangle a, b, c = dataset a dataset b c if a*a + b*b == c*c:
        return 1
     a*a + b*b == c*c a*a + b*b a*a a a b*b b b c*c c c return 1 1 return 0 0 dataset dataset N = int(input()) N int(input()) int input() input for _ in range(N):
    dataset = sorted(map(int, input().split()))
    flag = triangle(dataset)
    print(["NO", "YES"][flag]) _ range(N) range N dataset = sorted(map(int, input().split())) dataset sorted(map(int, input().split())) sorted map(int, input().split()) map int input().split() ().split () input split flag = triangle(dataset) flag triangle(dataset) triangle dataset print(["NO", "YES"][flag]) print ["NO", "YES"][flag] ["NO", "YES"] "NO" "YES" flag flag = triangle(dataset) triangle(dataset) flag N = int(input()) int(input()) N dataset = sorted(map(int, input().split())) sorted(map(int, input().split())) dataset def triangle(dataset):
    a, b, c = dataset
    if a*a + b*b == c*c:
        return 1
    return 0 def triangle(dataset):
    a, b, c = dataset
    if a*a + b*b == c*c:
        return 1
    return 0 triangle
def triangle(dataset):
    a, b, c = dataset
    if a*a + b*b == c*c:
        return 1
    return 0

N = int(input())
for _ in range(N):
    dataset = sorted(map(int, input().split()))
    flag = triangle(dataset)
    print(["NO", "YES"][flag])