#include #include #include #include #include #include #include #include #include #include using namespace std; //#define __int64 long long #define long __int64 #define REP(i,a,b) for(int i=a;i> in; cnt[in - 1] ++; } for(int i=0; i<13; i++){ if(cnt[i] == 2){ result += 1; }else if(cnt[i] == 3){ result += 10; } } if(result == 11){ cout << "FULL HOUSE" << endl; }else if(result == 10){ cout << "THREE CARD" << endl; }else if(result == 2){ cout << "TWO PAIR" << endl; }else if(result == 1){ cout << "ONE PAIR" << endl; }else{ cout << "NO HAND" << endl; } return 0; }