// AOJ q0038
// YAMADA Terushige
// 2013.5.6

#include<iostream>
#include<set>
#include<vector>
 
using namespace std;
 
int main(){
  int card;
  char c;
  while(cin >> card){
    string ans = "null";
    vector<int> num(15,0);
    set<int> spc;
    num[card]++;
    spc.insert(card);
    for(int i=0;i<4;i++){
      cin >> c >> card;
      num[card]++;
      spc.insert(card);
    }
    num[14]=num[1];

    int max = 0;
    for(int i=1;i<=13;i++)
      if(num[i]>max) max= num[i];

    switch(max){

    case 4:
      ans = "four card";
      break;

    case 3:
      if(spc.size()==3) ans = "three card";
      else if(spc.size()==2) ans = "full house";
      break;

    case 2:
      if(spc.size()==4) ans = "one pair";
      else if(spc.size()==3) ans = "two pair";
      break;
      
    case 1:	
      for(int i=1;i<=10;i++){
	int j;
	for(j=0;j<5;j++)
	  if(num[i+j]!=1) break;
	if(j==5){
	  ans = "straight";
	  break;
	}
      }

    }
    cout << ans << endl;	
  }
}
