n = int(raw_input())
for i in range(n):
    edge = map(int,raw_input().split(" "))
    e0 = edge[0] * edge[0]
    e1 = edge[1] * edge[1]
    e2 = edge[2] * edge[2]
    ret = "NO"
    if (edge[0] > edge[1]) and (edge[0] > edge[2]):
        if (e0 - e1 - e2) == 0:
            ret = "YES"
    if (edge[1] > edge[0]) and (edge[1] > edge[2]):
        if (e1 - e0 - e2) == 0:
            ret = "YES"
    if (edge[2] > edge[0]) and (edge[2] > edge[1]):
        if (e2 - e0 - e1) == 0:
            ret = "YES"
    print ret n = int(raw_input()) n int(raw_input()) int raw_input() raw_input for i in range(n):
    edge = map(int,raw_input().split(" "))
    e0 = edge[0] * edge[0]
    e1 = edge[1] * edge[1]
    e2 = edge[2] * edge[2]
    ret = "NO"
    if (edge[0] > edge[1]) and (edge[0] > edge[2]):
        if (e0 - e1 - e2) == 0:
            ret = "YES"
    if (edge[1] > edge[0]) and (edge[1] > edge[2]):
        if (e1 - e0 - e2) == 0:
            ret = "YES"
    if (edge[2] > edge[0]) and (edge[2] > edge[1]):
        if (e2 - e0 - e1) == 0:
            ret = "YES"
    print ret i range(n) range n edge = map(int,raw_input().split(" ")) edge map(int,raw_input().split(" ")) map int raw_input().split(" ") ().split () raw_input split " " e0 = edge[0] * edge[0] e0 edge[0] * edge[0] edge[0] edge 0 edge[0] edge 0 e1 = edge[1] * edge[1] e1 edge[1] * edge[1] edge[1] edge 1 edge[1] edge 1 e2 = edge[2] * edge[2] e2 edge[2] * edge[2] edge[2] edge 2 edge[2] edge 2 ret = "NO" ret "NO" if (edge[0] > edge[1]) and (edge[0] > edge[2]):
        if (e0 - e1 - e2) == 0:
            ret = "YES"
     (edge[0] > edge[1]) and (edge[0] > edge[2]) edge[0] > edge[1] edge[0] edge 0 edge[1] edge 1 edge[0] > edge[2] edge[0] edge 0 edge[2] edge 2 if (e0 - e1 - e2) == 0:
            ret = "YES"
     (e0 - e1 - e2) == 0 e0 - e1 - e2 e0 - e1 e0 e1 e2 0 ret = "YES" ret "YES" if (edge[1] > edge[0]) and (edge[1] > edge[2]):
        if (e1 - e0 - e2) == 0:
            ret = "YES"
     (edge[1] > edge[0]) and (edge[1] > edge[2]) edge[1] > edge[0] edge[1] edge 1 edge[0] edge 0 edge[1] > edge[2] edge[1] edge 1 edge[2] edge 2 if (e1 - e0 - e2) == 0:
            ret = "YES"
     (e1 - e0 - e2) == 0 e1 - e0 - e2 e1 - e0 e1 e0 e2 0 ret = "YES" ret "YES" if (edge[2] > edge[0]) and (edge[2] > edge[1]):
        if (e2 - e0 - e1) == 0:
            ret = "YES"
     (edge[2] > edge[0]) and (edge[2] > edge[1]) edge[2] > edge[0] edge[2] edge 2 edge[0] edge 0 edge[2] > edge[1] edge[2] edge 2 edge[1] edge 1 if (e2 - e0 - e1) == 0:
            ret = "YES"
     (e2 - e0 - e1) == 0 e2 - e0 - e1 e2 - e0 e2 e0 e1 0 ret = "YES" ret "YES" print ret = "YES" "YES" ret n = int(raw_input()) int(raw_input()) n e1 = edge[1] * edge[1] edge[1] * edge[1] e1 ret = "NO" "NO" ret e0 = edge[0] * edge[0] edge[0] * edge[0] e0 ret = "YES" "YES" ret edge = map(int,raw_input().split(" ")) map(int,raw_input().split(" ")) edge ret = "YES" "YES" ret e2 = edge[2] * edge[2] edge[2] * edge[2] e2
n = int(raw_input())
for i in range(n):
    edge = map(int,raw_input().split(" "))
    e0 = edge[0] * edge[0]
    e1 = edge[1] * edge[1]
    e2 = edge[2] * edge[2]
    ret = "NO"
    if (edge[0] > edge[1]) and (edge[0] > edge[2]):
        if (e0 - e1 - e2) == 0:
            ret = "YES"
    if (edge[1] > edge[0]) and (edge[1] > edge[2]):
        if (e1 - e0 - e2) == 0:
            ret = "YES"
    if (edge[2] > edge[0]) and (edge[2] > edge[1]):
        if (e2 - e0 - e1) == 0:
            ret = "YES"
    print ret