[print("YES" if y[0] + y[1] == y[2] else "NO") for y in [sorted([int(x)**2 for x in input().split()]) for _ in range(int(input()))]] print("YES" if y[0] + y[1] == y[2] else "NO") for y in [sorted([int(x)**2 for x in input().split()]) for _ in range(int(input()))] for y in [sorted([int(x)**2 for x in input().split()]) for _ in range(int(input()))] y [sorted([int(x)**2 for x in input().split()]) for _ in range(int(input()))] for y in [sorted([int(x)**2 for x in input().split()]) for _ in range(int(input()))] print("YES" if y[0] + y[1] == y[2] else "NO") print "YES" if y[0] + y[1] == y[2] else "NO" y[0] + y[1] == y[2] y[0] + y[1] y[0] y 0 y[1] y 1 y[2] y 2 "YES" "NO" [print("YES" if y[0] + y[1] == y[2] else "NO") for y in [sorted([int(x)**2 for x in input().split()]) for _ in range(int(input()))]]
[print("YES" if y[0] + y[1] == y[2] else "NO") for y in [sorted([int(x)**2 for x in input().split()]) for _ in range(int(input()))]]