import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;

public class Main {
  public static void main(String args[] ) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());

    for (int i = 0; i < n; i++) {
      String s = br.readLine();
      double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2);
      double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2);
      double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2);

      if( a + b == c ){
        System.out.println("YES");
      } else if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  }
} import java.io.InputStreamReader; InputStreamReader java.io import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String args[] ) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());

    for (int i = 0; i < n; i++) {
      String s = br.readLine();
      double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2);
      double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2);
      double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2);

      if( a + b == c ){
        System.out.println("YES");
      } else if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  }
} Main public static void main(String args[] ) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());

    for (int i = 0; i < n; i++) {
      String s = br.readLine();
      double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2);
      double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2);
      double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2);

      if( a + b == c ){
        System.out.println("YES");
      } else if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());

    for (int i = 0; i < n; i++) {
      String s = br.readLine();
      double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2);
      double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2);
      double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2);

      if( a + b == c ){
        System.out.println("YES");
      } else if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i = 0; i < n; i++) {
      String s = br.readLine();
      double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2);
      double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2);
      double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2);

      if( a + b == c ){
        System.out.println("YES");
      } else if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      String s = br.readLine();
      double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2);
      double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2);
      double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2);

      if( a + b == c ){
        System.out.println("YES");
      } else if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    } {
      String s = br.readLine();
      double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2);
      double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2);
      double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2);

      if( a + b == c ){
        System.out.println("YES");
      } else if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    } String s = br.readLine(); s br.readLine() br.readLine br double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2); a Math.pow(Double.parseDouble(s.split(" ")[0]),2) Math.pow Math Double.parseDouble(s.split(" ")[0]) Double.parseDouble Double s.split(" ")[0] s.split(" ") s.split s " " 0 2 double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2); b Math.pow(Double.parseDouble(s.split(" ")[1]),2) Math.pow Math Double.parseDouble(s.split(" ")[1]) Double.parseDouble Double s.split(" ")[1] s.split(" ") s.split s " " 1 2 double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2); c Math.pow(Double.parseDouble(s.split(" ")[2]),2) Math.pow Math Double.parseDouble(s.split(" ")[2]) Double.parseDouble Double s.split(" ")[2] s.split(" ") s.split s " " 2 2 if( a + b == c ){
        System.out.println("YES");
      } else if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        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" if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      } a + c == b a + c a c b {
        System.out.println("YES");
      } System.out.println("YES") System.out.println System.out System System.out "YES" if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      } b + c == a b + c b c a {
        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[] ) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());

    for (int i = 0; i < n; i++) {
      String s = br.readLine();
      double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2);
      double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2);
      double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2);

      if( a + b == c ){
        System.out.println("YES");
      } else if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  }
} public class Main {
  public static void main(String args[] ) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());

    for (int i = 0; i < n; i++) {
      String s = br.readLine();
      double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2);
      double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2);
      double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2);

      if( a + b == c ){
        System.out.println("YES");
      } else if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  }
} Main
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;

public class Main {
  public static void main(String args[] ) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(br.readLine());

    for (int i = 0; i < n; i++) {
      String s = br.readLine();
      double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2);
      double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2);
      double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2);

      if( a + b == c ){
        System.out.println("YES");
      } else if ( a + c == b) {
        System.out.println("YES");
      } else if ( b + c == a) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  }
}