#include int main(){ int v[5],i; for(i = 0; i < 5; i++) scanf("%d",v[i]); int t,j,cnt1,cnt2; for(t = 0; t < 5; t++){ for(j = 5; t < j; j--){ if(v[t] == v[j]){ cnt1++; } } } switch(cnt1){ case 0:printf("NO HAND"); break; case 1:printf("ONE PAIR"); break; case 2:printf("TWO PAIR"); break; case 3:printf("THREE CARD"); break; case 5:printf("FULL HOUSE"); break; default :printf("NO HAND"); break; } return 0; }