import java.util.*;class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?"YES":"NO")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}}} import java.util.*; util.* java class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?"YES":"NO")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}}} Main public static void main(String[]g){Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?"YES":"NO")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}} main {Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?"YES":"NO")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}} Scanner S=new Scanner(System.in); S new Scanner(System.in) for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?"YES":"NO")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);} int i=S.nextInt(),j,x,y,z,a[]=new int[3]; int i=S.nextInt() i S.nextInt() S.nextInt S j j x x y y z z a[]=new int[3]; a new int[3] 3 i-->0 i-- i 0 System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?"YES":"NO") System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?"YES":"NO") System.out.println System.out System System.out a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?"YES":"NO" a[2]*a[2]==a[1]*a[1]+a[0]*a[0] a[2]*a[2] a[2] a 2 a[2] a 2 a[1]*a[1]+a[0]*a[0] a[1]*a[1] a[1] a 1 a[1] a 1 a[0]*a[0] a[0] a 0 a[0] a 0 "YES" "NO" {for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);} {for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);} for(j=0;j<3;)a[j++]=S.nextInt(); j=0; j=0 j 0 j<3 j 3 a[j++]=S.nextInt(); a[j++]=S.nextInt() a[j++] a j++ j S.nextInt() S.nextInt S Arrays.sort(a) Arrays.sort Arrays a String[]g g
import java.util.*;class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?"YES":"NO")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}}}
