
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try {
            line = br.readLine();
            int n = Integer.parseInt(line.trim());
            for(int i=0; i<n; i++){
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            }
        } catch (IOException e) {
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try {
            line = br.readLine();
            int n = Integer.parseInt(line.trim());
            for(int i=0; i<n; i++){
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            }
        } catch (IOException e) {
        }
    }
} Main public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try {
            line = br.readLine();
            int n = Integer.parseInt(line.trim());
            for(int i=0; i<n; i++){
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            }
        } catch (IOException e) {
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try {
            line = br.readLine();
            int n = Integer.parseInt(line.trim());
            for(int i=0; i<n; i++){
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            }
        } catch (IOException e) {
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line; line try {
            line = br.readLine();
            int n = Integer.parseInt(line.trim());
            for(int i=0; i<n; i++){
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            }
        } catch (IOException e) {
        } catch (IOException e) {
        } IOException e {
        } {
            line = br.readLine();
            int n = Integer.parseInt(line.trim());
            for(int i=0; i<n; i++){
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            }
        } line = br.readLine() line br.readLine() br.readLine br int n = Integer.parseInt(line.trim()); n Integer.parseInt(line.trim()) Integer.parseInt Integer line.trim() line.trim line for(int i=0; i<n; i++){
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            } int i=0; int i=0; i 0 i<n i n i++ i++ i {
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            } {
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            } line = br.readLine() line br.readLine() br.readLine br String[] numbers = line.trim().split(" "); numbers line.trim().split(" ") line.trim().split line.trim() line.trim line " " int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])}; sides {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])} Integer.parseInt(numbers[0]) Integer.parseInt Integer numbers[0] numbers 0 Integer.parseInt(numbers[1]) Integer.parseInt Integer numbers[1] numbers 1 Integer.parseInt(numbers[2]) Integer.parseInt Integer numbers[2] numbers 2 int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2; maxSide sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2 sides[0]>sides[1] && sides[0]>sides[2] sides[0]>sides[1] sides[0] sides 0 sides[1] sides 1 sides[0]>sides[2] sides[0] sides 0 sides[2] sides 2 0 sides[1]>sides[2]? 1: 2 sides[1]>sides[2] sides[1] sides 1 sides[2] sides 2 1 2 int sum = 0; sum 0 for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                } int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                } {
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                } if(j != maxSide){
                        sum += sides[j] * sides[j];
                    } j != maxSide j maxSide {
                        sum += sides[j] * sides[j];
                    } sum += sides[j] * sides[j] sum sides[j] * sides[j] sides[j] sides j sides[j] sides j System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO") System.out.println System.out System System.out sides[maxSide] * sides[maxSide] == sum ? "YES": "NO" sides[maxSide] * sides[maxSide] == sum sides[maxSide] * sides[maxSide] sides[maxSide] sides maxSide sides[maxSide] sides maxSide sum "YES" "NO" String[] args args public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try {
            line = br.readLine();
            int n = Integer.parseInt(line.trim());
            for(int i=0; i<n; i++){
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            }
        } catch (IOException e) {
        }
    }
} public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try {
            line = br.readLine();
            int n = Integer.parseInt(line.trim());
            for(int i=0; i<n; i++){
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            }
        } catch (IOException e) {
        }
    }
} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try {
            line = br.readLine();
            int n = Integer.parseInt(line.trim());
            for(int i=0; i<n; i++){
                line = br.readLine();
                String[] numbers = line.trim().split(" ");
                int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
                int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
                int sum = 0;
                for(int j=0; j<3; j++){
                    if(j != maxSide){
                        sum += sides[j] * sides[j];
                    }
                }
                System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
            }
        } catch (IOException e) {
        }
    }
}