import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);
            if (bo) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
    
    public static boolean isTriangle(int a, int b, int c) {
        return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);
            if (bo) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
    
    public static boolean isTriangle(int a, int b, int c) {
        return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);
            if (bo) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);
            if (bo) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);
            if (bo) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);
            if (bo) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);
            if (bo) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b); bo isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b) isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b) isTriangle(a, b, c) isTriangle a b c isTriangle(b, c, a) isTriangle b c a isTriangle(c, a, b) isTriangle c a b if (bo) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            } bo {
                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 static boolean isTriangle(int a, int b, int c) {
        return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;
    } isTriangle {
        return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;
    } return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c; Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) Math.sqrt Math Math.pow(a, 2) + Math.pow(b, 2) Math.pow(a, 2) Math.pow Math a 2 Math.pow(b, 2) Math.pow Math b 2 c int a a int b b int c c public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);
            if (bo) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
    
    public static boolean isTriangle(int a, int b, int c) {
        return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);
            if (bo) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
    
    public static boolean isTriangle(int a, int b, int c) {
        return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);
            if (bo) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
    
    public static boolean isTriangle(int a, int b, int c) {
        return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;
    }
}