#include int main(void) { int i, count_pair, count_three; int a, card[14] = {0}; for(i = 0;i < 5;i++){ scanf("%d", &a); card[a]++; } count_pair = 0; count_three = 0; for(i = 1;i <= 13;i++){ switch(card[i]){ case 0: case 1: case 4: case 5: break; case 2: count_pair++; break; case 3: count_three++; break; default: break; } } if(count_three == 1 && count_pair == 1){ printf("FULL HOUSE\n"); } else if(count_three == 1){ printf("THREE CARD\n"); } else if(count_pair == 2){ printf("TWO PAIR\n"); } else if(count_pair == 1){ printf("ONE PAIR\n"); } else{ printf("NO HAND\n"); } return 0; }