import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    for(int i=0; i<n; i++) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      if (a > b && a > c) {
        if(a*a == b*b + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(b > a && b > c) {
        if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(c > a && c > b) {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      }
      System.out.println("NO");
    }    
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    for(int i=0; i<n; i++) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      if (a > b && a > c) {
        if(a*a == b*b + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(b > a && b > c) {
        if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(c > a && c > b) {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      }
      System.out.println("NO");
    }    
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    for(int i=0; i<n; i++) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      if (a > b && a > c) {
        if(a*a == b*b + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(b > a && b > c) {
        if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(c > a && c > b) {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      }
      System.out.println("NO");
    }    
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    for(int i=0; i<n; i++) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      if (a > b && a > c) {
        if(a*a == b*b + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(b > a && b > c) {
        if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(c > a && c > b) {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      }
      System.out.println("NO");
    }    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i=0; i<n; i++) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      if (a > b && a > c) {
        if(a*a == b*b + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(b > a && b > c) {
        if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(c > a && c > b) {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      }
      System.out.println("NO");
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      if (a > b && a > c) {
        if(a*a == b*b + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(b > a && b > c) {
        if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(c > a && c > b) {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      }
      System.out.println("NO");
    } {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      if (a > b && a > c) {
        if(a*a == b*b + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(b > a && b > c) {
        if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(c > a && c > b) {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      }
      System.out.println("NO");
    } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc if (a > b && a > c) {
        if(a*a == b*b + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(b > a && b > c) {
        if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(c > a && c > b) {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      } a > b && a > c a > b a b a > c a c {
        if(a*a == b*b + c*c) {
          System.out.println("YES");
          continue;
        }
      } if(a*a == b*b + c*c) {
          System.out.println("YES");
          continue;
        } a*a == b*b + c*c a*a a a b*b + c*c b*b b b c*c c c {
          System.out.println("YES");
          continue;
        } System.out.println("YES") System.out.println System.out System System.out "YES" continue; if(b > a && b > c) {
        if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(c > a && c > b) {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      } b > a && b > c b > a b a b > c b c {
        if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        }
      } if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        } b*b == a*a + c*c b*b b b a*a + c*c a*a a a c*c c c {
          System.out.println("YES");
          continue;
        } System.out.println("YES") System.out.println System.out System System.out "YES" continue; if(c > a && c > b) {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      } c > a && c > b c > a c a c > b c b {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      } if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        } c*c == a*a + b*b c*c c c a*a + b*b a*a a a b*b b b {
          System.out.println("YES");
          continue;
        } System.out.println("YES") System.out.println System.out System System.out "YES" continue; System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args
import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    for(int i=0; i<n; i++) {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      if (a > b && a > c) {
        if(a*a == b*b + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(b > a && b > c) {
        if(b*b == a*a + c*c) {
          System.out.println("YES");
          continue;
        }
      }
      else if(c > a && c > b) {
        if(c*c == a*a + b*b) {
          System.out.println("YES");
          continue;
        }
      }
      System.out.println("NO");
    }    
  }
}