import java.io.*;
import java.util.*;
public class Main{
 public static void main(String args[]){
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  try{
   String str=br.readLine();
   int n[]=new int[3];
   while((str=br.readLine())!=null){
    StringTokenizer st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   }
  }catch(Exception ex){
  }
 }
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
 public static void main(String args[]){
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  try{
   String str=br.readLine();
   int n[]=new int[3];
   while((str=br.readLine())!=null){
    StringTokenizer st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   }
  }catch(Exception ex){
  }
 }
} Main public static void main(String args[]){
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  try{
   String str=br.readLine();
   int n[]=new int[3];
   while((str=br.readLine())!=null){
    StringTokenizer st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   }
  }catch(Exception ex){
  }
 } main {
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  try{
   String str=br.readLine();
   int n[]=new int[3];
   while((str=br.readLine())!=null){
    StringTokenizer st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   }
  }catch(Exception ex){
  }
 } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try{
   String str=br.readLine();
   int n[]=new int[3];
   while((str=br.readLine())!=null){
    StringTokenizer st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   }
  }catch(Exception ex){
  } catch(Exception ex){
  } Exception ex {
  } {
   String str=br.readLine();
   int n[]=new int[3];
   while((str=br.readLine())!=null){
    StringTokenizer st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   }
  } String str=br.readLine(); str br.readLine() br.readLine br int n[]=new int[3]; n new int[3] 3 while((str=br.readLine())!=null){
    StringTokenizer st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   } (str=br.readLine())!=null (str=br.readLine()) str br.readLine() br.readLine br null {
    StringTokenizer st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   } StringTokenizer st=new StringTokenizer(str); st new StringTokenizer(str) for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    } int i=0; int i=0; i 0 i<=2 i 2 i++ i++ i {
     n[i]=Integer.parseInt(st.nextToken());
    } {
     n[i]=Integer.parseInt(st.nextToken());
    } n[i]=Integer.parseInt(st.nextToken()) n[i] n i Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st Arrays.sort(n) Arrays.sort Arrays n int a=(int)Math.pow(n[0],2); a (int)Math.pow(n[0],2) Math.pow Math n[0] n 0 2 int b=(int)Math.pow(n[1],2); b (int)Math.pow(n[1],2) Math.pow Math n[1] n 1 2 int c=(int)Math.pow(n[2],2); c (int)Math.pow(n[2],2) Math.pow Math n[2] n 2 2 if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    } a+b==c a+b a b 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 public class Main{
 public static void main(String args[]){
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  try{
   String str=br.readLine();
   int n[]=new int[3];
   while((str=br.readLine())!=null){
    StringTokenizer st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   }
  }catch(Exception ex){
  }
 }
} public class Main{
 public static void main(String args[]){
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  try{
   String str=br.readLine();
   int n[]=new int[3];
   while((str=br.readLine())!=null){
    StringTokenizer st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   }
  }catch(Exception ex){
  }
 }
} Main
import java.io.*;
import java.util.*;
public class Main{
 public static void main(String args[]){
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  try{
   String str=br.readLine();
   int n[]=new int[3];
   while((str=br.readLine())!=null){
    StringTokenizer st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   }
  }catch(Exception ex){
  }
 }
}