Go: package main
import (
        "fmt"
)

func main() {
        var num int
        fmt.Scan(&num)

        for i := 0; i < num; i++ {
                s1 := 0
                s2 := 0
                s3 := 0
                var chk int = 0
                fmt.Scanf("%d %d %d", &s1, &s2, &s3)
                if s1 >= s2 {
                        if s1 > s3 {
                                chk = 1
                        } else {
                                chk = 3
                        }
                } else {
                        if s2 >= s3 {
                                chk = 2
                        } else {
                                chk = 3
                        }
                }

                if (chk == 1 && s1*s1 == s2*s2 + s3*s3) ||
                        (chk == 2 && s2*s2 == s3*s3 + s1*s1) ||
                        (chk == 3 && s3*s3 == s1*s1 + s2*s2) {
                        fmt.Printf("YES\n")
                } else {
                        fmt.Printf("NO\n")
                }
        }
}

Python: #-*-coding:utf-8-*-

def get_input():
    for i in range(int(input())):
        yield "".join(input())
    print()
  
if __name__ == "__main__":
    array = list(get_input())
    for i in range(len(array)):        
        a,b,c = array[i].split()
        if int(a)^2 + int(b)^2 == int(c)^2:
            print("YES")
        elif int(c)^2 + int(a)^2 == int(b)^2:
            print("YES")
        elif int(b)^2 + int(c)^2 == int(a)^2:
            print("YES")
        else:
            print("NO")

Python: x=int(input())
for i in range(x):
    a,b,c=sorted(list(map(int,input().split())))
    if (a**2)+(b**2)==(c**2):
        print("YES")
    else:
        print("NO")

Python: if __name__ == "__main__":
    line = input()
    a = int(line.split(" ")[0])
    b = int(line.split(" ")[1])
    c = int(line.split(" ")[2])
    if (a*a+b*b==c*c) :
        print("YES")
    else :
        print("NO")

Python: n = int(input())
for i in range(n):
    a, b, c = sorted(list(map(int, input().split())))
    if c ** 2 == (a ** 2 + b ** 2):
        print("YES")
    else:
        print("NO")

Python: n=int(input())
for i in range(n):
	A=[int(j) for j in input().split()]
	if A[0]**2+A[1]**2==A[2]**2:
		print("YES")
	else:
		print("NO")

Python: n = int(input())
for _ in range(n):
    a, b, c = map(int, input().split())
    if (a**2 + b**2 == c**2) or\
            (b**2 + c**2 == a**2) or\
            (c**2 + a**2 == b**2):
        print("YES")
    else:
        print("NO")

Python: cnt = int(input())
values = []
for i in range(cnt):
    values.append([int(x) for x in input().split()])

for x, y, z in values:
    if int(z) ** 2 == int(x) ** 2 + int(y) ** 2:
        print('YES')
    else:
        print('NO')

Python: n=int(input())
for i in range(n):
    a,b,c = input().split()
    x = int(a)
    y = int(b)
    z = int(c)
    p = [x,y,z]
    p.sort()
    if pow(p[0],2) + pow(p[1],2) == pow(p[2],2):
        print('YES')
    else:
        print('NO')

Python: n=int(input())
a=[]
c=[]
for i in range(n):
    a.append([])
    for j in range(3):
        a[i].append([])
for i in range(n):
    #for j in range(3):
    a[i][0], a[i][1], a[i][2]=map(int, input().split())
    a[i].sort()
    if(((a[i][0]*a[i][0])+(a[i][1]*a[i][1]))==(a[i][2]*a[i][2])):
        k="YES"
        c.append(k)
    else:
        k="NO"
        c.append(k)
for i in range(n):
    print(c[i])

Python: # coding: utf-8
# Here your code !
N = int(input())

for i in range(N):
    a,b,c = map(int, input().split())
    flg = 0
    if a*a + b*b == c*c:
        flg = 1
    if c*c + a*a == b*b:
        flg = 1
    if b*b + c*c == a*a:
        flg = 1
    if flg == 1:
        print('YES')
    else:
        print('NO')

Python: n = int(input())
for i in range(n):
    a, b, c  = map(int, input().split())
    d = 2
    e = 1/2
    
    if (a**d+b**d)**e == c or (a**d+c**d)**e == b or (c**d+b**d)**e == a:
        print('YES')
        
    else:
        print('NO')

Python: n =  int(input())
for i in range(n):
    tri = input()
    tri_list = tri.split()
    tri_list.sort()
    a = int(tri_list[2]) ** 2
    b = int(tri_list[0]) ** 2 + int(tri_list[1]) ** 2
    if a == b:
        print("YES")
    else:
        print("NO")

Python: for i in range(int(input())):
    a=map(int,raw_input().split())
    if a[0]**2+a[1]**2==a[2]**2:print("YES")
    else:print("NO")

Python: n=int(input())
for i in range(n):
	x,y,z=map(int,input().split())
	if x**2+y**2==z**2:
		print("YES")
	else:
		print("NO")

Python: n=int(input())
for i in range(n):
	A=[int(j) for j in input().split()]
	if(A[0]**2+A[1]**2==A[2]**2):
		print("YES")
	else:
		print("NO")

Python: for i in range(int(input())):
    (a, b, c) = sorted(list(map(int, input().split())))
    if a**2+b**2 == c**2:
        print("YES")
    else:
        print("NO")

Python: a=[print(s) for s in map(lambda x:x[0]+x[1]==x[2] and 'YES' or 'NO', [sorted(int(x)**2 for x in raw_input().split(' ')) for i in range(int(raw_input()))])]

Python: N=int(input())
for i in range(N):
    a,b,c=sorted(map(int,input().split()))
    if a**2+b**2==c**2 or a**2+c**2==b**2 or b**2+c**2==a**2:
        print('YES')
    else:
        print('NO')

Python: import sys
for i in sys.stdin:
    try:
        sidelen = [int(j) for j in i.split(" ")]
        sidelen.sort(reverse=True)
        if(sidelen[0]**2 == sidelen[1]**2 + sidelen[2]**2):
            print("YES")
        else:
            print("NO")
    except:
        continue

Python: s=int(input())
jon=[]
while True:
    try:
        jon.append(input())
    except:
        break
for i in jon:
    pon=sorted(list(map(int,i.split())),reverse=True)
    if pon[0]**2==pon[1]**2+pon[2]**2:
        print('YES')
    else:
        print('NO')

Python: import sys

n = int(sys.stdin.readline())
l = sys.stdin.readlines()
s = ""
for i in l:
  x, y, z = sorted(map(lambda x:x*x,map(int, i.split())))
  if x + y == z:
      s += "YES\n"
  else:
      s += "NO\n"

print(s,end="")

Python: N=int(input())


for i in range(N):
    a,b,c=map(int,input().split())
    A=max(a,max(b,c))
    B=min(a,min(b,c))
    C=a+b+c-A-B
    
    if B**2+C**2==A**2:
        print('YES')
    else:
        print('NO')

Python: a=int(input())
for i in range(a):
    x,y,z=[int(i) for i in input().split() ]
    if (x*x==z*z+y*y)or(y*y==z*z+x*x)or(z*z==x*x+y*y):
        print("YES")
    else:
        print("NO")

Python: n = int(input())
for i in range(n):
    a = list(map(int, input().split()))
    if a[0]**2 == a[1]**2 + a[2]**2 or a[1]**2 == a[2]**2 + a[0]**2 or a[2]**2 == a[0]**2 + a[1]**2 :
        print("YES")
    else:
        print("NO")

Python: import sys

n = int(sys.stdin.readline().strip())
for i in range(n):
    line = sys.stdin.readline()
    lengths = sorted(list(map(int, line.strip().split())))
    if lengths[0]**2 + lengths[1]**2 == lengths[2]**2:
        print('YES')
    else:
        print('NO')

Python: n=int(input())
for j in range(n):
    l =input().split()
    a=[int(l[i]) for i in range(3)]
    a=sorted(a)
    if a[0]**2+a[1]**2==a[2]**2:
        print("YES")
    else:
        print("NO")

Python: def main():
    n = int(input())
    while True:
        try:
            li = [input() for _ in range(n)]
            li = sorted(li)
            for x in li:
                tmp = x.split(" ")
                for i in range(len(tmp)):
                    tmp[i] = int(tmp[i])
                tmp = sorted(tmp)
                a,b,c = tmp[0],tmp[1],tmp[2]
                if (a**2 + b**2) == c**2:
                    print("YES")
                else:
                    print("NO")
        except EOFError:
            break
    return None

if __name__ == '__main__':
    main()

Python: n=int(input())
for i in range(n):
    p=list(map(int,input().split(" ")))
    p.sort()
    a=p[0]
    b=p[1]
    c=p[2]
    if pow(a,2) + pow(b,2) == pow(c,2):
        print('YES')
    else:
        print('NO')