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: def main():
    n = int(input())
    if n <= 0:
        return None
    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")
    return None

if __name__ == '__main__':
    main()

Python: # coding: utf-8
# Your code here!

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 c * c - a * a - b * b == 0:
      print("YES")
   else:
      print("NO")

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

Python: import sys
import math

for line in sys.stdin:
  a = line.split()
  if len(a) == 3:
    print ("YES" if int(a[0])*int(a[0]) + int(a[1])*int(a[1]) == int(a[2])*int(a[2]) else "NO")

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

Python: a=int(input())

for _ in range(a):
    x,y,z=sorted(list(map(int,input().split())))
    print("YES" if x**2+y**2==z**2 else "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: def main():
	n = int(input())

	for _ in range(n):
		len_list = map(int, input().split())
		check_tri(len_list)

def check_tri(len_list):
	import itertools
	import math

	flag = False
	for tmp in list(itertools.permutations(len_list)):
		if (pow(tmp[0], 2) + pow(tmp[1], 2)) == pow(tmp[2], 2):
			flag = True
			break

	if flag == True:
		print('YES')
	else:
		print('NO')

if __name__ == '__main__':
	main()

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

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

Python: 
n = int(input())
for _ in range(n):
    a, b, c = sorted([int(x) for x in input().split()])
    if c*c == b*b + a*a:
        print("YES")
    else:
        print("NO")

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

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

Python: import sys
input()
for e in sys.stdin:
    a, b, c = sorted(int(e.split()))
    if a**2 + b**2 == c**2:
        print('YES')
    else:
        print('NO')

Python: num = input()
for x in range(0, int(num)):
    l = map(int, input().split())
    lists = sorted(l)
    if lists[2] ** 2 == lists[0] ** 2 + lists[1] ** 2:
        print("YES")
    else:
        print("NO")

Python: #! /usr/bin/python3

a=int(input())

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

Python: import math
import itertools

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

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

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

Python: N = int(input())

i = 0

while True:
    a = list((int(x) for x in input().split()))
    a.sort()

    i += 1

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

    if i == N:
        break

Python: N = input()
a = []
answer_list = []

for i in range(N):
    a.append(map(int, raw_input().strip().split()))

for j in range(len(a)):
    number_1 = a[j][0]
    number_2 = a[j][1]
    number_3 = a[j][2]

    number_1_mul = number_1 ** 2
    number_2_mul = number_2 ** 2
    number_3_mul = number_3 ** 2

    if number_1_mul == number_2_mul + number_3_mul:
        print("YES")
    if number_2_mul == number_3_mul + number_1_mul:
        print("YES")
    if number_3_mul == number_1_mul + number_2_mul:
        print("YES")

    else:
        print("NO")

Python: N = input()
for i in range(N):
	l = []
	line = raw_input()
	l.append(int(line.split()[0]))
	l.append(int(line.split()[1]))
	l.append(int(line.split()[2]))
	l.sort()
	if l[0]*l[0]+l[1]*l[1]==l[2]*l[2]:
		print("YES")
	else:
		print("NO")

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

Python: N = int(input())
for i in range(N):
	line = raw_input()
	l = [None]*3
	l[0] = int(line.split()[0])
	l[1] = int(line.split()[1])
	l[2] = int(line.split()[2])
	l.sort()
	if l[0]**2+l[1]**2==l[2]**2:
		print("YES")
	else:
		print("NO")

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

Python: N = int(input())
for i in range(N):
    a, b, c = map(int, input().split())
    sort = sorted([a, b, c])
    if sort[0]**2 + sort[1]**2 == sort[2]**2:
        print("Yes")
    else:
        print("No")

Python: while (1):
	edges = list(map(int, input().split()))
	if len(edges) == 0:
		break
	edges.sort()

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

Python: N = int(raw_input())

for i in range(N):
    line = raw_input()
    a, b, c = sorted(int(i) for i in line.split())

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

Python: N = int(input())

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

Python: n=input()
n=int(n)
for i in range(n):
    a,b,c=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: [print("YES"if e else"NO")for e in[int(ln.split()[0])**2+int(ln.split()[1])**2==int(ln.split()[2])**2for ln in __import__("sys").stdin]]

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 == a**2 + c**2:
        print("YES")
    elif c**2 == a**2 + b**2:
        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")