import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int n = in.nextInt();
       for(int i=0;i<n;i++) {
           ArrayList<Integer>intArr = new ArrayList<Integer>();
           for(int j=0;j<3;j++)
               intArr.add(in.nextInt());
           Collections.sort(intArr);
           Collections.reverse(intArr);
           int c = intArr.get(0);
           int a = intArr.get(1);
           int b = intArr.get(2);
           if(a*a + b*b == c*c) {
               System.out.println("YES");
           } else {
               System.out.println("NO");
           }
       }
    }
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int n = in.nextInt();
       for(int i=0;i<n;i++) {
           ArrayList<Integer>intArr = new ArrayList<Integer>();
           for(int j=0;j<3;j++)
               intArr.add(in.nextInt());
           Collections.sort(intArr);
           Collections.reverse(intArr);
           int c = intArr.get(0);
           int a = intArr.get(1);
           int b = intArr.get(2);
           if(a*a + b*b == c*c) {
               System.out.println("YES");
           } else {
               System.out.println("NO");
           }
       }
    }
} Main public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int n = in.nextInt();
       for(int i=0;i<n;i++) {
           ArrayList<Integer>intArr = new ArrayList<Integer>();
           for(int j=0;j<3;j++)
               intArr.add(in.nextInt());
           Collections.sort(intArr);
           Collections.reverse(intArr);
           int c = intArr.get(0);
           int a = intArr.get(1);
           int b = intArr.get(2);
           if(a*a + b*b == c*c) {
               System.out.println("YES");
           } else {
               System.out.println("NO");
           }
       }
    } main {
       Scanner in = new Scanner(System.in);
       int n = in.nextInt();
       for(int i=0;i<n;i++) {
           ArrayList<Integer>intArr = new ArrayList<Integer>();
           for(int j=0;j<3;j++)
               intArr.add(in.nextInt());
           Collections.sort(intArr);
           Collections.reverse(intArr);
           int c = intArr.get(0);
           int a = intArr.get(1);
           int b = intArr.get(2);
           if(a*a + b*b == c*c) {
               System.out.println("YES");
           } else {
               System.out.println("NO");
           }
       }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in for(int i=0;i<n;i++) {
           ArrayList<Integer>intArr = new ArrayList<Integer>();
           for(int j=0;j<3;j++)
               intArr.add(in.nextInt());
           Collections.sort(intArr);
           Collections.reverse(intArr);
           int c = intArr.get(0);
           int a = intArr.get(1);
           int b = intArr.get(2);
           if(a*a + b*b == c*c) {
               System.out.println("YES");
           } else {
               System.out.println("NO");
           }
       } int i=0; int i=0; i 0 i<n i n i++ i++ i {
           ArrayList<Integer>intArr = new ArrayList<Integer>();
           for(int j=0;j<3;j++)
               intArr.add(in.nextInt());
           Collections.sort(intArr);
           Collections.reverse(intArr);
           int c = intArr.get(0);
           int a = intArr.get(1);
           int b = intArr.get(2);
           if(a*a + b*b == c*c) {
               System.out.println("YES");
           } else {
               System.out.println("NO");
           }
       } {
           ArrayList<Integer>intArr = new ArrayList<Integer>();
           for(int j=0;j<3;j++)
               intArr.add(in.nextInt());
           Collections.sort(intArr);
           Collections.reverse(intArr);
           int c = intArr.get(0);
           int a = intArr.get(1);
           int b = intArr.get(2);
           if(a*a + b*b == c*c) {
               System.out.println("YES");
           } else {
               System.out.println("NO");
           }
       } ArrayList<Integer>intArr = new ArrayList<Integer>(); intArr new ArrayList<Integer>() for(int j=0;j<3;j++)
               intArr.add(in.nextInt()); int j=0; int j=0; j 0 j<3 j 3 j++ j++ j intArr.add(in.nextInt()); intArr.add(in.nextInt()) intArr.add intArr in.nextInt() in.nextInt in Collections.sort(intArr) Collections.sort Collections intArr Collections.reverse(intArr) Collections.reverse Collections intArr int c = intArr.get(0); c intArr.get(0) intArr.get intArr 0 int a = intArr.get(1); a intArr.get(1) intArr.get intArr 1 int b = intArr.get(2); b intArr.get(2) intArr.get intArr 2 if(a*a + b*b == c*c) {
               System.out.println("YES");
           } else {
               System.out.println("NO");
           } a*a + b*b == c*c a*a + b*b a*a a a b*b b b c*c c c {
               System.out.println("YES");
           } System.out.println("YES") System.out.println System.out System System.out "YES" {
               System.out.println("NO");
           } System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int n = in.nextInt();
       for(int i=0;i<n;i++) {
           ArrayList<Integer>intArr = new ArrayList<Integer>();
           for(int j=0;j<3;j++)
               intArr.add(in.nextInt());
           Collections.sort(intArr);
           Collections.reverse(intArr);
           int c = intArr.get(0);
           int a = intArr.get(1);
           int b = intArr.get(2);
           if(a*a + b*b == c*c) {
               System.out.println("YES");
           } else {
               System.out.println("NO");
           }
       }
    }
}