import java.util.Scanner;
import java.util.Arrays;

class Main
{
    public static boolean isRTri(int a, int b, int c)
    {
        return a * a + b * b == c * c;
    }
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        for (int k = 1; k <= n; k++)
        {
            int a[] = new int [3];
            for (int i = 0; i < 3; i++)
            {
                a[i] = input.nextInt();
            }
            Arrays.sort(a);
            boolean r = isRTri(a[0], a[1], a[2]);
            System.out.printf("%s\n", r ? "YES" : "NO");
        }
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main
{
    public static boolean isRTri(int a, int b, int c)
    {
        return a * a + b * b == c * c;
    }
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        for (int k = 1; k <= n; k++)
        {
            int a[] = new int [3];
            for (int i = 0; i < 3; i++)
            {
                a[i] = input.nextInt();
            }
            Arrays.sort(a);
            boolean r = isRTri(a[0], a[1], a[2]);
            System.out.printf("%s\n", r ? "YES" : "NO");
        }
    }
} Main public static boolean isRTri(int a, int b, int c)
    {
        return a * a + b * b == c * c;
    } isRTri {
        return a * a + b * b == c * c;
    } return a * a + b * b == c * c; a * a + b * b == c * c a * a + b * b a * a a a b * b b b c * c c c int a a int b b int c c public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        for (int k = 1; k <= n; k++)
        {
            int a[] = new int [3];
            for (int i = 0; i < 3; i++)
            {
                a[i] = input.nextInt();
            }
            Arrays.sort(a);
            boolean r = isRTri(a[0], a[1], a[2]);
            System.out.printf("%s\n", r ? "YES" : "NO");
        }
    } main {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        for (int k = 1; k <= n; k++)
        {
            int a[] = new int [3];
            for (int i = 0; i < 3; i++)
            {
                a[i] = input.nextInt();
            }
            Arrays.sort(a);
            boolean r = isRTri(a[0], a[1], a[2]);
            System.out.printf("%s\n", r ? "YES" : "NO");
        }
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int n = input.nextInt(); n input.nextInt() input.nextInt input for (int k = 1; k <= n; k++)
        {
            int a[] = new int [3];
            for (int i = 0; i < 3; i++)
            {
                a[i] = input.nextInt();
            }
            Arrays.sort(a);
            boolean r = isRTri(a[0], a[1], a[2]);
            System.out.printf("%s\n", r ? "YES" : "NO");
        } int k = 1; int k = 1; k 1 k <= n k n k++ k++ k {
            int a[] = new int [3];
            for (int i = 0; i < 3; i++)
            {
                a[i] = input.nextInt();
            }
            Arrays.sort(a);
            boolean r = isRTri(a[0], a[1], a[2]);
            System.out.printf("%s\n", r ? "YES" : "NO");
        } {
            int a[] = new int [3];
            for (int i = 0; i < 3; i++)
            {
                a[i] = input.nextInt();
            }
            Arrays.sort(a);
            boolean r = isRTri(a[0], a[1], a[2]);
            System.out.printf("%s\n", r ? "YES" : "NO");
        } int a[] = new int [3]; a new int [3] 3 for (int i = 0; i < 3; i++)
            {
                a[i] = input.nextInt();
            } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
                a[i] = input.nextInt();
            } {
                a[i] = input.nextInt();
            } a[i] = input.nextInt() a[i] a i input.nextInt() input.nextInt input Arrays.sort(a) Arrays.sort Arrays a boolean r = isRTri(a[0], a[1], a[2]); r isRTri(a[0], a[1], a[2]) isRTri a[0] a 0 a[1] a 1 a[2] a 2 System.out.printf("%s\n", r ? "YES" : "NO") System.out.printf System.out System System.out "%s\n" r ? "YES" : "NO" r "YES" "NO" String[] args args
import java.util.Scanner;
import java.util.Arrays;

class Main
{
    public static boolean isRTri(int a, int b, int c)
    {
        return a * a + b * b == c * c;
    }
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        for (int k = 1; k <= n; k++)
        {
            int a[] = new int [3];
            for (int i = 0; i < 3; i++)
            {
                a[i] = input.nextInt();
            }
            Arrays.sort(a);
            boolean r = isRTri(a[0], a[1], a[2]);
            System.out.printf("%s\n", r ? "YES" : "NO");
        }
    }
}