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