#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
#include<cstdlib>

using namespace std;

int main(void){
  int x[5],card[14],fg[5],i;
  vector<int>y;
  while(~scanf("%d,%d,%d,%d,%d"
	       ,&x[0],&x[1],&x[2],&x[3],&x[4])){
    
    memset(card,0,sizeof(card));
    memset(fg,0,sizeof(fg));


    for(i=0;i<5;i++)card[x[i]]++;

    for(i=1;i<14;i++){
      if(card[i]==2 && fg[0]==0)fg[0]=1;
      else if(card[i]==2 && fg[0]==1){
	fg[0]=0;
	cout <<"two pair" << endl;
	fg[2]=1;
	break;
      }
      else if(card[i]==3 && fg[0]!=1)fg[3]=1;
      else if(card[i]==3 && fg[0]==1){
	fg[0]=0;
	cout << "full house" << endl;
	fg[2]=1;
	break;
      }
      else if(card[i]==4){
	cout << "four card" << endl;
	fg[2]=1;
	break;
      }
    }
    if(fg[0]==1){
      cout << "one pair" << endl;
      fg[2]=1;
    }
    else if(fg[3]==1){
      cout << "three card" << endl;
      fg[2]=1;
    }
    
    for(i=0;i<5;i++)y.push_back(x[i]);
    sort(y.begin(),y.end());
 
    for(i=1;i<4;i++)if(y[i]+1!=y[i+1])fg[4]=1;

    if(!fg[4] && !fg[2]){
      cout << "straight" <<endl;
      fg[2]=1;
    }
    if(fg[2]==0)cout <<"null"<<endl;
    y.clear();
  }

  return 0;
}