#include #include #include #include using namespace std; int main() { vector number(13); for(int i = 0;i < 5;i++){ int a; cin >> a; number[a]++; } sort(number.rbegin(),number.rend()); if(number[0] == 3 && number[1] == 2)cout << "FULL HOUSE\n"; else if(number[0] == 3)cout << "THREE CARD\n"; else if(number[0] == 2 && number[1] == 2)cout << "TWO PAIR\n"; else if(number[0] == 2)cout << "ONE PAIR\n"; else cout << "NO HAND\n"; return 0; }