def check(List):
    List.sort()
    List.reverse()
    if List[0]**2 == List[1]**2+List[2]**2:
        return "YES"
    else:
        return "NO"

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

N = input()
    
for i in range(N):
    list = map(int, raw_input().split())
    print check(list)