#include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);i++)
#define loop(i,x,n) for(int i=(x);i<(n);i++)
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define mp make_pair
#define fir first
#define sec second
#define ub upper_bound
#define lb lower_bound
//#define int long long
using namespace std;
const int MOD=1000000007;
const int INF=1000000009;

int main(){
  int a,b,c,d,e;
  char x;
  while(cin>>a>>x>>b>>x>>c>>x>>d>>x>>e){
    int num[14]={};
    num[a]++;num[b]++;num[c]++;num[d]++;num[e]++;
    int M_NUM=*max_element(num,num+14);
    bool key=false;
    loop(i,1,10)if(num[i]==1&&num[i+1]==1&&num[i+2]==1&&num[i+3]==1&&num[i+4]==1)key=true;
    if(num[1]==1&&num[13]==1&&num[12]==1&&num[11]==1&&num[10]==1)key=true;
    if(key){
      cout<<"straight"<<endl;
      goto at;
    }
    if(M_NUM==4){
      cout<<"four card"<<endl;
      goto at;
    }else if(M_NUM==3){
      bool flag=false;
      rep(i,14)if(num[i]==2)flag=true;
      if(flag){
        cout<<"full house"<<endl;
        goto at;
      }else{
        cout<<"three card"<<endl;
        goto at;
      }
    }else if(M_NUM==2){
      int p=0;
      rep(i,14)if(num[i]==2)p++;
      if(p==2){
        cout<<"two pair"<<endl;
        goto at;
      }else{
        cout<<"one pair"<<endl;
        goto at;
      }
    }else{
      cout<<"NULL"<<endl;
    }
    at: ;
  }
  return 0;
}