#include #include #include #include #include #include #include #include using namespace std; int main(){ vector a(5); for(int i=0; i<5 ;i++) cin >> a[i]; vector v(13); for(int i=0; i<5; i++) v[ a[i]-1 ]++; sort(v.begin(), v.end()); if( v[12] == 3 ){ if( v[11] == 2 ) cout << "FULL HOUSE" << endl; else cout << "THREE CARD" << endl; }else if(v[12] == 2){ if( v[11] == 2 ) cout << "TWO PAIR" << endl; else cout << "ONE PAIR" << endl; }else cout << "NO HAND" << endl; return 0; }