#include int main(void){ int i, card[15]; int pairNum[5]; for(i=0;i<15;i++){card[i] = 0;} for(i=0;i<5;i++){pairNum[i] = 0;} for(i=0;i<5;i++){ int tmp; scanf("%d", &tmp); card[tmp]++; } if( pairNum[3] == 1 && pairNum[2] == 1 ){ printf("FULL HOUSE\n"); }else if( pairNum[3] == 1 ){ printf("THREE CARD\n"); }else if( pairNum[2] == 2 ){ printf("TWO PAIR\n"); }else if( pairNum[2] == 1 ){ printf("ONE PAIR\n"); }else{ printf("NO HAND\n"); } return 0; }