import static java.lang.Math.pow;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int numOfDataset = Integer.parseInt(reader.readLine());
    for (int i = 0; i < numOfDataset; i++) {
      String[] sideLengths_Str = reader.readLine().split(" ");
      int[] sideLengths = new int[sideLengths_Str.length];
      for (int j = 0; j < sideLengths_Str.length; j++)
        sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);

      Arrays.sort(sideLengths);

      if (pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  }

} import static java.lang.Math.pow; import static java.lang.Math.pow; import static java.lang.Math.pow; import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int numOfDataset = Integer.parseInt(reader.readLine());
    for (int i = 0; i < numOfDataset; i++) {
      String[] sideLengths_Str = reader.readLine().split(" ");
      int[] sideLengths = new int[sideLengths_Str.length];
      for (int j = 0; j < sideLengths_Str.length; j++)
        sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);

      Arrays.sort(sideLengths);

      if (pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  }

} Main public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int numOfDataset = Integer.parseInt(reader.readLine());
    for (int i = 0; i < numOfDataset; i++) {
      String[] sideLengths_Str = reader.readLine().split(" ");
      int[] sideLengths = new int[sideLengths_Str.length];
      for (int j = 0; j < sideLengths_Str.length; j++)
        sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);

      Arrays.sort(sideLengths);

      if (pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  } main {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int numOfDataset = Integer.parseInt(reader.readLine());
    for (int i = 0; i < numOfDataset; i++) {
      String[] sideLengths_Str = reader.readLine().split(" ");
      int[] sideLengths = new int[sideLengths_Str.length];
      for (int j = 0; j < sideLengths_Str.length; j++)
        sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);

      Arrays.sort(sideLengths);

      if (pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int numOfDataset = Integer.parseInt(reader.readLine()); numOfDataset Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader for (int i = 0; i < numOfDataset; i++) {
      String[] sideLengths_Str = reader.readLine().split(" ");
      int[] sideLengths = new int[sideLengths_Str.length];
      for (int j = 0; j < sideLengths_Str.length; j++)
        sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);

      Arrays.sort(sideLengths);

      if (pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    } int i = 0; int i = 0; i 0 i < numOfDataset i numOfDataset i++ i++ i {
      String[] sideLengths_Str = reader.readLine().split(" ");
      int[] sideLengths = new int[sideLengths_Str.length];
      for (int j = 0; j < sideLengths_Str.length; j++)
        sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);

      Arrays.sort(sideLengths);

      if (pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    } {
      String[] sideLengths_Str = reader.readLine().split(" ");
      int[] sideLengths = new int[sideLengths_Str.length];
      for (int j = 0; j < sideLengths_Str.length; j++)
        sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);

      Arrays.sort(sideLengths);

      if (pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    } String[] sideLengths_Str = reader.readLine().split(" "); sideLengths_Str reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int[] sideLengths = new int[sideLengths_Str.length]; sideLengths new int[sideLengths_Str.length] sideLengths_Str.length sideLengths_Str sideLengths_Str.length for (int j = 0; j < sideLengths_Str.length; j++)
        sideLengths[j] = Integer.parseInt(sideLengths_Str[j]); int j = 0; int j = 0; j 0 j < sideLengths_Str.length j sideLengths_Str.length sideLengths_Str sideLengths_Str.length j++ j++ j sideLengths[j] = Integer.parseInt(sideLengths_Str[j]); sideLengths[j] = Integer.parseInt(sideLengths_Str[j]) sideLengths[j] sideLengths j Integer.parseInt(sideLengths_Str[j]) Integer.parseInt Integer sideLengths_Str[j] sideLengths_Str j Arrays.sort(sideLengths) Arrays.sort Arrays sideLengths if (pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      } pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2) pow(sideLengths[2], 2) pow sideLengths[2] sideLengths 2 2 pow(sideLengths[1], 2) + pow(sideLengths[0], 2) pow(sideLengths[1], 2) pow sideLengths[1] sideLengths 1 2 pow(sideLengths[0], 2) pow sideLengths[0] sideLengths 0 2 {
        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 reader = new BufferedReader(new InputStreamReader(System.in));

    int numOfDataset = Integer.parseInt(reader.readLine());
    for (int i = 0; i < numOfDataset; i++) {
      String[] sideLengths_Str = reader.readLine().split(" ");
      int[] sideLengths = new int[sideLengths_Str.length];
      for (int j = 0; j < sideLengths_Str.length; j++)
        sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);

      Arrays.sort(sideLengths);

      if (pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  }

} public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int numOfDataset = Integer.parseInt(reader.readLine());
    for (int i = 0; i < numOfDataset; i++) {
      String[] sideLengths_Str = reader.readLine().split(" ");
      int[] sideLengths = new int[sideLengths_Str.length];
      for (int j = 0; j < sideLengths_Str.length; j++)
        sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);

      Arrays.sort(sideLengths);

      if (pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  }

} Main
import static java.lang.Math.pow;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int numOfDataset = Integer.parseInt(reader.readLine());
    for (int i = 0; i < numOfDataset; i++) {
      String[] sideLengths_Str = reader.readLine().split(" ");
      int[] sideLengths = new int[sideLengths_Str.length];
      for (int j = 0; j < sideLengths_Str.length; j++)
        sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);

      Arrays.sort(sideLengths);

      if (pow(sideLengths[2], 2)
              == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }
    }
  }

}