#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> a[i]; cnt[ a[i] - 1] ++; } for(int i=0; i<13; i++){ if(cnt[i] == 2){ pair[0] ++; }else if(cnt[i] == 3){ pair[1] ++; } } result = pair[0] * 10 + pair[1]; 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; }