#include //cin, cout #include //vector #include //sort,min,max,count #include //string #include //fixed #include //setprecision #include //swap #include //abs(int) #include //sqrt #include //stringstream,getline #include //ceil using namespace std; int main() { vector A(14); int temp; for (int i = 0; i < 5; i++) { cin >> temp; A[temp]++; } int a = count(A.begin(), A.end(), 3); int b = count(A.begin(), A.end(), 2); if (a != 0) { if (b == 1) { cout << "FULL HOUSE" << endl; } else { cout << "THREE CARD" << endl; } } else { if (b == 2) { cout << "TWO PAIR" << endl; } else if (b == 1) { cout << "ONE PAIR" << endl; } else { cout << "NO HAND" << endl; } } return 0; }