#include #include #include #include using namespace std; int main(){ vector a(5); for(int i=0; i<5; i++){ cin>> a[i]; } map mp; for(int i=0; i<5; i++){ mp[a[i]]++; } int cnt2=0, cnt3=0; for(int i=1; i<=13; i++){ if(mp[i]==2){ cnt2++; }else if(mp[i]==3){ cnt3++; } } if(cnt3==1){ if(cnt2==1){ cout<< "FULL HOUSE"<< endl; }else{ cout<< "THREE CARD"<< endl; } }else if(cnt2>=1){ if(cnt2==2){ cout<< "TWO PAIR"<< endl; }else{ cout<< "ONE PAIR"<< endl; } }else{ cout<< "NO HAND"<< endl; } return 0; }