#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;

int main(){
  
  int d[5];
  
  while(scanf("%d,%d,%d,%d,%d",&d[0],&d[1],&d[2],&d[3],&d[4]) != EOF){
    
    sort(d,d+5);
    
    int ans = 0;
    if(d[0] == d[3] || d[1] == d[4]) ans = 7;
    if(!ans && d[0] == d[2] && d[3] == d[4]) ans = 6;
    if(!ans && d[0] == d[1] && d[2] == d[4]) ans = 6;
    if(!ans){
      bool p = false;
      for(int i=0;i<4;i++) if(d[i]+1 != d[i+1]) p = true;
      if(!p) ans = 5;
    }
    if(!ans && d[0] == 1 && d[1] == 10 && d[2] == 11 && d[3] == 12 && d[4] == 13) ans = 5;
    if(!ans && (d[0] == d[2] || d[1] == d[3] || d[2] == d[4])) ans = 4;
    if(!ans){
      int cnt = 0;
      for(int i=0;i<4;i++) if(d[i] == d[i+1]) cnt++;
      if(cnt == 2) ans = 3;
      else if(cnt == 1) ans = 2;
      else if(!cnt) ans = 1;
    }
    
    if(ans == 1) cout << "null";
    else if(ans == 2) cout << "one pair";
    else if(ans == 3) cout << "two pair";
    else if(ans == 4) cout << "three card";
    else if(ans == 5) cout << "straight";
    else if(ans == 6) cout << "hull house";
    else if(ans == 7) cout << "four card";
    cout << endl;
  }
}