#include <iostream>
#include <algorithm>
#include <sstream>
#include <string>
using namespace std;

int main(){
	int t[1000][3], cnttri=0, cntlen, i;
	string str, tmp;
while(getline(cin, str)){
	cntlen=0;
	istringstream stream(str);
	while(getline(stream, tmp, ' ')){
		if(cntlen > 2){cntlen++;break;};
		t[cnttri][cntlen] = atoi(tmp.c_str());
		cntlen++;
		
	}
	if(cntlen == 3){
		cnttri++;
	}
}
	for(i=0;i<cnttri;i++){
		if(t[i][2]*t[i][2] == t[i][1]*t[i][1] + t[i][0]*t[i][0]){
			cout << "YES\n";
		}else{
			cout << "NO\n";
		}
	}
	return 0;
}