import java.util.Scanner;

public class Main {

  private static int loop_num;

  static String rightTriangle(int a, int b, int c){
    String judge = "NO";
    if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {
      judge = "YES";
    }
    return judge;
  }

  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    loop_num = stdIn.nextInt();
    String[] result_triangle = new String[loop_num];

    for (int i = 0;i < loop_num; i++) {
      result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());
    }

    for (String result: result_triangle) {
      System.out.println(result);
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {

  private static int loop_num;

  static String rightTriangle(int a, int b, int c){
    String judge = "NO";
    if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {
      judge = "YES";
    }
    return judge;
  }

  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    loop_num = stdIn.nextInt();
    String[] result_triangle = new String[loop_num];

    for (int i = 0;i < loop_num; i++) {
      result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());
    }

    for (String result: result_triangle) {
      System.out.println(result);
    }
  }
} Main private static int loop_num; loop_num static String rightTriangle(int a, int b, int c){
    String judge = "NO";
    if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {
      judge = "YES";
    }
    return judge;
  } rightTriangle {
    String judge = "NO";
    if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {
      judge = "YES";
    }
    return judge;
  } String judge = "NO"; judge "NO" if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {
      judge = "YES";
    } (a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a) (a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a) (a*a)+(b*b) == (c*c) (a*a)+(b*b) (a*a) a a (b*b) b b (c*c) c c (c*c) + (a*a) == (b*b) (c*c) + (a*a) (c*c) c c (a*a) a a (b*b) b b (c*c) + (b*b) == (a*a) (c*c) + (b*b) (c*c) c c (b*b) b b (a*a) a a {
      judge = "YES";
    } judge = "YES" judge "YES" return judge; judge int a a int b b int c c public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    loop_num = stdIn.nextInt();
    String[] result_triangle = new String[loop_num];

    for (int i = 0;i < loop_num; i++) {
      result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());
    }

    for (String result: result_triangle) {
      System.out.println(result);
    }
  } main {
    Scanner stdIn = new Scanner(System.in);
    loop_num = stdIn.nextInt();
    String[] result_triangle = new String[loop_num];

    for (int i = 0;i < loop_num; i++) {
      result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());
    }

    for (String result: result_triangle) {
      System.out.println(result);
    }
  } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) loop_num = stdIn.nextInt() loop_num stdIn.nextInt() stdIn.nextInt stdIn String[] result_triangle = new String[loop_num]; result_triangle new String[loop_num] loop_num for (int i = 0;i < loop_num; i++) {
      result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());
    } int i = 0; int i = 0; i 0 i < loop_num i loop_num i++ i++ i {
      result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());
    } {
      result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());
    } result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt()) result_triangle[i] result_triangle i rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt()) rightTriangle stdIn.nextInt() stdIn.nextInt stdIn stdIn.nextInt() stdIn.nextInt stdIn stdIn.nextInt() stdIn.nextInt stdIn for (String result: result_triangle) {
      System.out.println(result);
    } String result result_triangle {
      System.out.println(result);
    } {
      System.out.println(result);
    } System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

  private static int loop_num;

  static String rightTriangle(int a, int b, int c){
    String judge = "NO";
    if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {
      judge = "YES";
    }
    return judge;
  }

  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    loop_num = stdIn.nextInt();
    String[] result_triangle = new String[loop_num];

    for (int i = 0;i < loop_num; i++) {
      result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());
    }

    for (String result: result_triangle) {
      System.out.println(result);
    }
  }
} public class Main {

  private static int loop_num;

  static String rightTriangle(int a, int b, int c){
    String judge = "NO";
    if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {
      judge = "YES";
    }
    return judge;
  }

  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    loop_num = stdIn.nextInt();
    String[] result_triangle = new String[loop_num];

    for (int i = 0;i < loop_num; i++) {
      result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());
    }

    for (String result: result_triangle) {
      System.out.println(result);
    }
  }
} Main
import java.util.Scanner;

public class Main {

  private static int loop_num;

  static String rightTriangle(int a, int b, int c){
    String judge = "NO";
    if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {
      judge = "YES";
    }
    return judge;
  }

  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    loop_num = stdIn.nextInt();
    String[] result_triangle = new String[loop_num];

    for (int i = 0;i < loop_num; i++) {
      result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());
    }

    for (String result: result_triangle) {
      System.out.println(result);
    }
  }
}