Go: package main

import (
  "fmt"
)


func main() {
  var a int
  var b int
  var c int
  var n int
  fmt.Scan(&n)
  for _, err := fmt.Scan(&a, &b, &c); err == nil; _, err = fmt.Scan(&a, &b, &c) {
    if a*a == b*b+c*c {
      fmt.Println("YES")
    } else if b*b == c*c+a*a {
      fmt.Println("YES")
    } else if c*c == a*a+b*b {
      fmt.Println("YES")
    } else {
      fmt.Println("NO")
    }
  }
}

Python: N = int(input())
for i in range(N):
    a = list(map(int, input().split()))
    a = sorted(a)
    x,y,z = a[0],a[1],a[2]
    if x**2 + y**2 == z**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: [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: deta_set_count = int(input())
for _ in range(deta_set_count):
    k = list(map(int, input().split()))
    if k[0]**2 + k[1]**2 == k[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==z**2+y**2:
        print('YES')
    elif y**2==x**2+z**2:
        print('YES')
    elif z**2==x**2+y**2:
        print('YES')
    else:
        print('NO')

Python: N=int(input())
for i in range(N):
    a,b,c=map(int,input().split())
    if a>b:
        a,b=b,a
    if b>c:
        b,c=c,b
    if a>b:
        a,b=b,a
    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(map(int, input().split()))
    if a**2 + b**2 == c**2 :
        print("YES")
    else:
        print("NO")

Python: for _ in[0]*int(input()):
 a,b,c=sorted(map(int,input().split()))
 print(['NO','YES'][a*a+b*b==c*c])

Python: import math

N = int(input())

for i in range(N):
  side_len = list(map(int, input().split(" ")))
  side_len.sort()
  if int(math.pow(side_len[0], 2)) + int(math.pow(side_len[1], 2)) == int(math.pow(side_len[2], 2)):
    print("YES")
  else:
    print("NO")

Python: import sys

for line in sys.stdin:
   a,b,c = [int(x) for x in line.split()]
   if (a**2+b**2) == c**2:
      print('YES')
   else:
      print('NO')

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

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

Python: n = int(input())
i = 0
ans = []
while True:
    if n == i:
        break
    else:
        i += 1
    a, b, c = map(int, input().split())
    if c**2 == a**2+b**2:
        ans.append("YES")
    else:
        ans.append("NO")
for i in range(n):
    print(ans[i])

Python: line = int(input())
for i in range(line):
	a,b,c = sorted([int(i) for i in input().split(' ')])

	if a**2 + b**2 == c**2:
		print('YES')
	else:
		print('NO')

Python: for i in range(int(input())):
    line = sorted(list(map(int, input().split())),reverse=True)
    print('YES' if line[0]**2==line[1]**2+line[2]**2 else 'NO')

Python: list_a=[]
list_b=[]
list_c=[]
N=int(input())
for i in range(N):
   a,b,c=map(int,input().split())
   list_a.append(a)
   list_b.append(b)
   list_c.append(c)

for i in range(N):
   list_a[i],list_b[i],list_c[i]=sorted([list_a[i],list_b[i],list_c[i]])
   x=list_a[i]
   y=list_b[i]
   z=list_c[i]
   if x**2+y**2==z**2:
      print("YES")
   else:
      print("NO")

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

Python: def ifTriangle(a, b, c):
    if a**2 + b**2 == c: print("YES")
    else: print("NO")

n=int(input())
for i in range(n):
    lines=list(map(int, input().split()))
    lines.sort()
    ifTriangle(lines[0], lines[1], lines[2])

    #ifTriangle(a, b, c)

Python: n = int(input())
for i in range(n):
    line = input()
    edges = line.split(' ')
    edges.sort()

    a = int(edges[0])
    b = int(edges[1])
    c = int(edges[2])

    if(a**2 + b**2 == c**2):
        print('YES')
    else:
        print('NO')

Python: def d(a):
	return int(a)

N=int(input())
answer=""
for i in range(N):
	if answer!="":
		answer+="\n"
	a=input().split()
	
	a.sort(key=d)
	if int(a[0])**2+int(a[1])**2==int(a[2])**2:
		answer+="YES"
	else:
		answer+="NO"
print(answer)

Python: for i in range(int(input())):
    data = input().split()

    length = []
    for j in range(3):
        length.append(int(data[j]))
    length.sort()

    if (length[0]**2) + (length[1]**2) == (length[2]**2):
        print("YES")
    else:
        print("NO")

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

Python: N=int(input())
i=1
t=0
while i<N+1:
    a,b,c=map(int,input().split())
    if a>b:
        t=a;a=b;b=t
    if b>c:
        t=b;b=c;c=t
    if a>b:
        t=a;a=b;b=t 
    if a*a + b*b == c*c:
        print("YES")
    else:
        print("NO") 
    i=i+1

Python: import sys

__author__ = 'bisuk'

i = 0
list0 = []
for line in sys.stdin.readlines():
    # list1 = line.split(" ")
    list0.append(line)
    # list0.append(int(line.strip("\n")))

# print("N = "+str(list0[0]))
#print(list0)
for i in range(1, int(list0[0]) + 1):
    #print("i="+str(i) + " :" + list0[i]),
    list2 = sorted(list0[i].strip("\n").split(" "))
    #print(list2)
    if int(list2[0]) * int(list2[0]) + int(list2[1]) * int(list2[1]) == int(list2[2]) * int(list2[2]):
        print("YES")
    else:
        print("NO")

Python: n = int(input())
ans = []
for i in range(n):
    a = list(map(int, input().split()))
    a = sorted(a)
    if a[0]**2 + a[1]**2 == a[2]**2:
        ans.append('YES')
    else:
        ans.append('NO')
print(*ans, sep='\n')

Python: import sys
input()
for line in sys.stdin:
    a, b, c = map(int, line.split())
    d = (a + b + c) / 2
    if(a > d or b > d or c > d):
        print("NO")
    else:
        print("YES")

Python: N =  int(input())

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

Python: #!/usr/bin/env python
# -*- coding: utf-8 -*-

n = int(input())

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

Python: s = int(input())

for i in range(s):
  xs = map(int, input().split())
  xs = [x*x for x in xs]
  
  if xs[0]+xs[2] == xs[1] or xs[1]+xs[0] == xs[2] or xs[2]+xs[1]==xs[0]:
    print('YES')
  else:
    print('NO')

Python: N = int(input())

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

Python: N = input()

for i in range(int(N)):
    l = list(map(int, input().split()))
    l.sort()
    if(l[2] == (l[0]**2+l[1]**2)**0.5):
        print("YES")
    else:
        print("NO")

Python: def get_input():
    for i in range(int(input())):
        yield "".join(input())

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(u"YES")
        elif int(c)^2 + int(a)^2 == int(b)^2:
            print(u"YES")
        elif int(b)^2 + int(c)^2 == int(a)^2:
            print(u"YES")
        else:
            print(u"NO")