#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
#define rep(i,a) for(int i = 0 ; i < a;  i ++)
int main(void){
  vector<int> array(5);
  vector<int> card(14);
  string s;  
  while(cin>>s){
    rep(i,5)array[i]=0;
    rep(i,14)card[i]=0;
    for(int i = 0, j = 0 ; i < s.size() ; i ++){
      if(s[i] == ','){
	j++;continue;
      }
      array[j] = array[j] * 10 +s[i]-'0';
    }
    rep(i,5)card[array[i]]++;
    sort(card.begin(),card.end(),greater<int>());
    //rep(i,5)cout<<card[i]<<endl;
    sort(array.begin(),array.end());
    if(
       (card[0 ] == 1 && card[1 ] == 1 && card[2 ] == 1 && card[3 ] == 1 && card[4] == 1 ) 
       //(card[10] == 1 && card[11] == 1 && card[12] == 1 && card[13] == 1 && card[1] == 1 )
       ){
      bool check=0;
      rep(i,4){
	if(array[i] != array[i+1] - 1){
	  check = 1;
	  break;
	}
      }
      if(!check)cout<<"straight"<<endl;
      else if((array[1] == 1 && array[10] == 1 && array[11] == 1 && array[12] == 1 && array[13] == 1 ) || 
	 (array[1] == 1 && array[2] == 1 && array[11] == 1 && array[12] == 1 && array[13] == 1 )){
	cout<<"straight"<<endl;
      }else cout<<"null"<<endl;
      continue;
    }
    switch(card[0]){
    case 4:
      cout<<"four card"<<endl;break;
    case 3:
      if(card[1]==2){
	cout<<"full house"<<endl;
      }else{
	cout<<"three card"<<endl;
      }
      break;
    case 2:
      if(card[1]==2){
	cout<<"two pair"<<endl;
      }else{
	cout<<"one pair"<<endl;
      }
      break;
    default:
      cout<<"null"<<endl;
    }
  }
}