public class
Main
{
  public static void
  main (
    String[ ] args
    )
  {
    java.util.Scanner cin = new java.util.Scanner ( System.in );
    int n;

    for ( n = cin.nextInt ( ); n != 0; --n )
    {
      int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };

      java.util.Arrays.sort ( a );
      System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" );
    }

    return ;
  }
} Main
{
  public static void
  main (
    String[ ] args
    )
  {
    java.util.Scanner cin = new java.util.Scanner ( System.in );
    int n;

    for ( n = cin.nextInt ( ); n != 0; --n )
    {
      int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };

      java.util.Arrays.sort ( a );
      System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" );
    }

    return ;
  }
} Main public static void
  main (
    String[ ] args
    )
  {
    java.util.Scanner cin = new java.util.Scanner ( System.in );
    int n;

    for ( n = cin.nextInt ( ); n != 0; --n )
    {
      int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };

      java.util.Arrays.sort ( a );
      System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" );
    }

    return ;
  } main {
    java.util.Scanner cin = new java.util.Scanner ( System.in );
    int n;

    for ( n = cin.nextInt ( ); n != 0; --n )
    {
      int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };

      java.util.Arrays.sort ( a );
      System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" );
    }

    return ;
  } java.util.Scanner cin = new java.util.Scanner ( System.in ); cin new java.util.Scanner ( System.in ) int n; n for ( n = cin.nextInt ( ); n != 0; --n )
    {
      int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };

      java.util.Arrays.sort ( a );
      System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" );
    } n = cin.nextInt ( ); n = cin.nextInt ( ) n cin.nextInt ( ) cin.nextInt cin n != 0 n 0 --n --n n {
      int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };

      java.util.Arrays.sort ( a );
      System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" );
    } {
      int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };

      java.util.Arrays.sort ( a );
      System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" );
    } int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) }; a { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) } cin.nextInt ( ) cin.nextInt cin cin.nextInt ( ) cin.nextInt cin cin.nextInt ( ) cin.nextInt cin java.util.Arrays.sort ( a ) java.util.Arrays.sort java.util.Arrays java.util java java.util java.util.Arrays a System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" ) System.out.println System.out System System.out a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ] a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] a[ 0 ] * a[ 0 ] a[ 0 ] a 0 a[ 0 ] a 0 a[ 1 ] * a[ 1 ] a[ 1 ] a 1 a[ 1 ] a 1 a[ 2 ] * a[ 2 ] a[ 2 ] a 2 a[ 2 ] a 2 "YES" "NO" return ; String[ ] args args Main
{
  public static void
  main (
    String[ ] args
    )
  {
    java.util.Scanner cin = new java.util.Scanner ( System.in );
    int n;

    for ( n = cin.nextInt ( ); n != 0; --n )
    {
      int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };

      java.util.Arrays.sort ( a );
      System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" );
    }

    return ;
  }
} Main
{
  public static void
  main (
    String[ ] args
    )
  {
    java.util.Scanner cin = new java.util.Scanner ( System.in );
    int n;

    for ( n = cin.nextInt ( ); n != 0; --n )
    {
      int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };

      java.util.Arrays.sort ( a );
      System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" );
    }

    return ;
  }
} Main
public class
Main
{
  public static void
  main (
    String[ ] args
    )
  {
    java.util.Scanner cin = new java.util.Scanner ( System.in );
    int n;

    for ( n = cin.nextInt ( ); n != 0; --n )
    {
      int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };

      java.util.Arrays.sort ( a );
      System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
        ? "YES" : "NO" );
    }

    return ;
  }
}