import java.util.Scanner;


public class Main {
	
	static Scanner sc = new Scanner(System.in);
	static int n, m, i=0;
	static int a[] = new int[3];

	public static void main(String[] args) {
		
		while(read())
		{
			solve();
		}
	}
	
	static boolean read(){
		if(!sc.hasNext()) return false;
		if(n == m) n = sc.nextInt();
		
		a[i] = sc.nextInt();
		i++;
		
		return true;
	}
	
	static void solve(){
		if(i != 3) return;
		
		System.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
		   a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
		   a[2] * a[2] == a[0] * a[0] + a[1] * a[1])
		   ?"YES":"NO");
		i=0;
	}

} import java.util.Scanner; Scanner java.util public class Main {
	
	static Scanner sc = new Scanner(System.in);
	static int n, m, i=0;
	static int a[] = new int[3];

	public static void main(String[] args) {
		
		while(read())
		{
			solve();
		}
	}
	
	static boolean read(){
		if(!sc.hasNext()) return false;
		if(n == m) n = sc.nextInt();
		
		a[i] = sc.nextInt();
		i++;
		
		return true;
	}
	
	static void solve(){
		if(i != 3) return;
		
		System.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
		   a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
		   a[2] * a[2] == a[0] * a[0] + a[1] * a[1])
		   ?"YES":"NO");
		i=0;
	}

} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static int n n m m i=0; i 0 static int a[] = new int[3]; a new int[3] 3 public static void main(String[] args) {
		
		while(read())
		{
			solve();
		}
	} main {
		
		while(read())
		{
			solve();
		}
	} while(read())
		{
			solve();
		} read() read {
			solve();
		} solve() solve String[] args args static boolean read(){
		if(!sc.hasNext()) return false;
		if(n == m) n = sc.nextInt();
		
		a[i] = sc.nextInt();
		i++;
		
		return true;
	} read {
		if(!sc.hasNext()) return false;
		if(n == m) n = sc.nextInt();
		
		a[i] = sc.nextInt();
		i++;
		
		return true;
	} if(!sc.hasNext()) return false; !sc.hasNext() sc.hasNext() sc.hasNext sc return false; false if(n == m) n = sc.nextInt(); n == m n m n = sc.nextInt() n sc.nextInt() sc.nextInt sc a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc i++ i return true; true static void solve(){
		if(i != 3) return;
		
		System.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
		   a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
		   a[2] * a[2] == a[0] * a[0] + a[1] * a[1])
		   ?"YES":"NO");
		i=0;
	} solve {
		if(i != 3) return;
		
		System.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
		   a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
		   a[2] * a[2] == a[0] * a[0] + a[1] * a[1])
		   ?"YES":"NO");
		i=0;
	} if(i != 3) return; i != 3 i 3 return; System.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
		   a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
		   a[2] * a[2] == a[0] * a[0] + a[1] * a[1])
		   ?"YES":"NO") System.out.println System.out System System.out (a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
		   a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
		   a[2] * a[2] == a[0] * a[0] + a[1] * a[1])
		   ?"YES":"NO" (a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
		   a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
		   a[2] * a[2] == a[0] * a[0] + a[1] * a[1]) a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
		   a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
		   a[2] * a[2] == a[0] * a[0] + a[1] * a[1] a[0] * a[0] == a[1] * a[1] + a[2] * a[2] a[0] * a[0] a[0] a 0 a[0] a 0 a[1] * a[1] + a[2] * a[2] a[1] * a[1] a[1] a 1 a[1] a 1 a[2] * a[2] a[2] a 2 a[2] a 2 a[1] * a[1] == a[0] * a[0] + a[2] * a[2] a[1] * a[1] a[1] a 1 a[1] a 1 a[0] * a[0] + a[2] * a[2] a[0] * a[0] a[0] a 0 a[0] a 0 a[2] * a[2] a[2] a 2 a[2] a 2 a[2] * a[2] == a[0] * a[0] + a[1] * a[1] a[2] * a[2] a[2] a 2 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 "YES" "NO" i=0 i 0 public class Main {
	
	static Scanner sc = new Scanner(System.in);
	static int n, m, i=0;
	static int a[] = new int[3];

	public static void main(String[] args) {
		
		while(read())
		{
			solve();
		}
	}
	
	static boolean read(){
		if(!sc.hasNext()) return false;
		if(n == m) n = sc.nextInt();
		
		a[i] = sc.nextInt();
		i++;
		
		return true;
	}
	
	static void solve(){
		if(i != 3) return;
		
		System.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
		   a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
		   a[2] * a[2] == a[0] * a[0] + a[1] * a[1])
		   ?"YES":"NO");
		i=0;
	}

} public class Main {
	
	static Scanner sc = new Scanner(System.in);
	static int n, m, i=0;
	static int a[] = new int[3];

	public static void main(String[] args) {
		
		while(read())
		{
			solve();
		}
	}
	
	static boolean read(){
		if(!sc.hasNext()) return false;
		if(n == m) n = sc.nextInt();
		
		a[i] = sc.nextInt();
		i++;
		
		return true;
	}
	
	static void solve(){
		if(i != 3) return;
		
		System.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
		   a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
		   a[2] * a[2] == a[0] * a[0] + a[1] * a[1])
		   ?"YES":"NO");
		i=0;
	}

} Main
import java.util.Scanner;


public class Main {
	
	static Scanner sc = new Scanner(System.in);
	static int n, m, i=0;
	static int a[] = new int[3];

	public static void main(String[] args) {
		
		while(read())
		{
			solve();
		}
	}
	
	static boolean read(){
		if(!sc.hasNext()) return false;
		if(n == m) n = sc.nextInt();
		
		a[i] = sc.nextInt();
		i++;
		
		return true;
	}
	
	static void solve(){
		if(i != 3) return;
		
		System.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
		   a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
		   a[2] * a[2] == a[0] * a[0] + a[1] * a[1])
		   ?"YES":"NO");
		i=0;
	}

}