#include<cstdio>
int main(){
  int n;
  scanf("%d", &n);
  for(int i = 0; i < n; i++){
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if(0 == -a*a+b*b+c*c ||
       0 == a*a-b*b+c*c ||
       0 == a*a+b*b-c*c)
      printf("YES\n");
    else
      printf("NO\n");
  }
}