#include<cstdio>
int main(){
  int card[5],ans,cou=0,tmp,i,j;
  char yaku[7][15] = {"four card","full house","straight","three card","two pair","one pair","null"};
  while(scanf("%d,%d,%d,%d,%d",&card[0],&card[1],&card[2],&card[3],&card[4]) != EOF){
    for(i=0;i<5;i++){
      if(card[i] == 1){
	card[i] = 14;
      }
    }
    for(i=0;i<5;i++){
      for(j=i+1;j<5;j++){
	if(card[i] > card[j]){
	  tmp = card[i];
	  card[i] = card[j];
	  card[j] = tmp;
	}
      }
    }
    i=0;
    if(card[0] == card[1] && card[1] == card[2] && card[2] == card[3] || card[1] == card[2] && card[2] == card[3] && card[3] == card[4]) ans = 0;
    else if(card[0] == card[1] && card[1] == card[2] && card[3] == card[4] || card[0] == card[1] && card[2] == card[3] && card[3] == card[4]) ans = 1;
    else if(card[1] == card[0] + 1 && card[2] == card[0] + 2 && card[3] == card[0] + 3 && card[4] == card[0] + 4) ans = 2;
    else if(card[i] == card[i+1] && card[i+1] == card[i+2] || card[i+1] == card[i+2] && card[i+2] == card[i+3] || card[i+2] == card[i+3] && card[i+3] == card[i+4]) ans = 3;
    else{
      for(i=0;i<4;i++){
	if(card[i] == card[i+1]){
	  cou++;
	}
      }
      if(cou == 2){
	ans = 4;
      }
      else if(cou == 1){
	ans = 5;
      }
      else{
	ans = 6;
      }
    }
    printf("%s\n",yaku[ans]);
  }
  return 0;
}