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

class Main
{

	public static void main(String[] args) throws NumberFormatException, IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> strLst = new ArrayList<String>();
		int cnt = 0;
		int max;
		int other;
		String inputLine = "";
		String[] lines;

		br.readLine();
		while (cnt <= 1000 && (inputLine = br.readLine()) != null)
		{
			max = 0;
			other = 0;
			lines = inputLine.split(" ");

			for (int i = 0; i < 3; ++i)
			{
				other += (int) Math.pow(Integer.parseInt(lines[i]), 2);
				if (max < Integer.parseInt(lines[i]))
				{
					max = Integer.parseInt(lines[i]);
				}
			}
			other -=(int) Math.pow(max, 2);

			if (other == (int) Math.pow(max, 2))
				strLst.add("YES");
			else
				strLst.add("NO");

			++cnt;
		}

		for(String result : strLst)
		{
			System.out.println(result);
		}

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util class Main
{

	public static void main(String[] args) throws NumberFormatException, IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> strLst = new ArrayList<String>();
		int cnt = 0;
		int max;
		int other;
		String inputLine = "";
		String[] lines;

		br.readLine();
		while (cnt <= 1000 && (inputLine = br.readLine()) != null)
		{
			max = 0;
			other = 0;
			lines = inputLine.split(" ");

			for (int i = 0; i < 3; ++i)
			{
				other += (int) Math.pow(Integer.parseInt(lines[i]), 2);
				if (max < Integer.parseInt(lines[i]))
				{
					max = Integer.parseInt(lines[i]);
				}
			}
			other -=(int) Math.pow(max, 2);

			if (other == (int) Math.pow(max, 2))
				strLst.add("YES");
			else
				strLst.add("NO");

			++cnt;
		}

		for(String result : strLst)
		{
			System.out.println(result);
		}

	}

} Main public static void main(String[] args) throws NumberFormatException, IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> strLst = new ArrayList<String>();
		int cnt = 0;
		int max;
		int other;
		String inputLine = "";
		String[] lines;

		br.readLine();
		while (cnt <= 1000 && (inputLine = br.readLine()) != null)
		{
			max = 0;
			other = 0;
			lines = inputLine.split(" ");

			for (int i = 0; i < 3; ++i)
			{
				other += (int) Math.pow(Integer.parseInt(lines[i]), 2);
				if (max < Integer.parseInt(lines[i]))
				{
					max = Integer.parseInt(lines[i]);
				}
			}
			other -=(int) Math.pow(max, 2);

			if (other == (int) Math.pow(max, 2))
				strLst.add("YES");
			else
				strLst.add("NO");

			++cnt;
		}

		for(String result : strLst)
		{
			System.out.println(result);
		}

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> strLst = new ArrayList<String>();
		int cnt = 0;
		int max;
		int other;
		String inputLine = "";
		String[] lines;

		br.readLine();
		while (cnt <= 1000 && (inputLine = br.readLine()) != null)
		{
			max = 0;
			other = 0;
			lines = inputLine.split(" ");

			for (int i = 0; i < 3; ++i)
			{
				other += (int) Math.pow(Integer.parseInt(lines[i]), 2);
				if (max < Integer.parseInt(lines[i]))
				{
					max = Integer.parseInt(lines[i]);
				}
			}
			other -=(int) Math.pow(max, 2);

			if (other == (int) Math.pow(max, 2))
				strLst.add("YES");
			else
				strLst.add("NO");

			++cnt;
		}

		for(String result : strLst)
		{
			System.out.println(result);
		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) ArrayList<String> strLst = new ArrayList<String>(); strLst new ArrayList<String>() int cnt = 0; cnt 0 int max; max int other; other String inputLine = ""; inputLine "" String[] lines; lines br.readLine() br.readLine br while (cnt <= 1000 && (inputLine = br.readLine()) != null)
		{
			max = 0;
			other = 0;
			lines = inputLine.split(" ");

			for (int i = 0; i < 3; ++i)
			{
				other += (int) Math.pow(Integer.parseInt(lines[i]), 2);
				if (max < Integer.parseInt(lines[i]))
				{
					max = Integer.parseInt(lines[i]);
				}
			}
			other -=(int) Math.pow(max, 2);

			if (other == (int) Math.pow(max, 2))
				strLst.add("YES");
			else
				strLst.add("NO");

			++cnt;
		} cnt <= 1000 && (inputLine = br.readLine()) != null cnt <= 1000 cnt 1000 (inputLine = br.readLine()) != null (inputLine = br.readLine()) inputLine br.readLine() br.readLine br null {
			max = 0;
			other = 0;
			lines = inputLine.split(" ");

			for (int i = 0; i < 3; ++i)
			{
				other += (int) Math.pow(Integer.parseInt(lines[i]), 2);
				if (max < Integer.parseInt(lines[i]))
				{
					max = Integer.parseInt(lines[i]);
				}
			}
			other -=(int) Math.pow(max, 2);

			if (other == (int) Math.pow(max, 2))
				strLst.add("YES");
			else
				strLst.add("NO");

			++cnt;
		} max = 0 max 0 other = 0 other 0 lines = inputLine.split(" ") lines inputLine.split(" ") inputLine.split inputLine " " for (int i = 0; i < 3; ++i)
			{
				other += (int) Math.pow(Integer.parseInt(lines[i]), 2);
				if (max < Integer.parseInt(lines[i]))
				{
					max = Integer.parseInt(lines[i]);
				}
			} int i = 0; int i = 0; i 0 i < 3 i 3 ++i ++i i {
				other += (int) Math.pow(Integer.parseInt(lines[i]), 2);
				if (max < Integer.parseInt(lines[i]))
				{
					max = Integer.parseInt(lines[i]);
				}
			} {
				other += (int) Math.pow(Integer.parseInt(lines[i]), 2);
				if (max < Integer.parseInt(lines[i]))
				{
					max = Integer.parseInt(lines[i]);
				}
			} other += (int) Math.pow(Integer.parseInt(lines[i]), 2) other (int) Math.pow(Integer.parseInt(lines[i]), 2) Math.pow Math Integer.parseInt(lines[i]) Integer.parseInt Integer lines[i] lines i 2 if (max < Integer.parseInt(lines[i]))
				{
					max = Integer.parseInt(lines[i]);
				} max < Integer.parseInt(lines[i]) max Integer.parseInt(lines[i]) Integer.parseInt Integer lines[i] lines i {
					max = Integer.parseInt(lines[i]);
				} max = Integer.parseInt(lines[i]) max Integer.parseInt(lines[i]) Integer.parseInt Integer lines[i] lines i other -=(int) Math.pow(max, 2) other (int) Math.pow(max, 2) Math.pow Math max 2 if (other == (int) Math.pow(max, 2))
				strLst.add("YES");
			else
				strLst.add("NO"); other == (int) Math.pow(max, 2) other (int) Math.pow(max, 2) Math.pow Math max 2 strLst.add("YES") strLst.add strLst "YES" strLst.add("NO") strLst.add strLst "NO" ++cnt cnt for(String result : strLst)
		{
			System.out.println(result);
		} String result strLst {
			System.out.println(result);
		} {
			System.out.println(result);
		} System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

class Main
{

	public static void main(String[] args) throws NumberFormatException, IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> strLst = new ArrayList<String>();
		int cnt = 0;
		int max;
		int other;
		String inputLine = "";
		String[] lines;

		br.readLine();
		while (cnt <= 1000 && (inputLine = br.readLine()) != null)
		{
			max = 0;
			other = 0;
			lines = inputLine.split(" ");

			for (int i = 0; i < 3; ++i)
			{
				other += (int) Math.pow(Integer.parseInt(lines[i]), 2);
				if (max < Integer.parseInt(lines[i]))
				{
					max = Integer.parseInt(lines[i]);
				}
			}
			other -=(int) Math.pow(max, 2);

			if (other == (int) Math.pow(max, 2))
				strLst.add("YES");
			else
				strLst.add("NO");

			++cnt;
		}

		for(String result : strLst)
		{
			System.out.println(result);
		}

	}

}