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

using namespace std;

int main(void){
  int x[5];
 
  while(scanf("%d,%d,%d,%d,%d"
	       ,&x[0],&x[1],&x[2],&x[3],&x[4])!=EOF){
    sort(x,x+5);

    int cnt[15];
    fill(cnt,cnt+15,0);
    for(int i=0;i<5;i++){
      cnt[x[i]]++;
      if(x[i]==1)cnt[14]++;
    }

    int fg=0;
    for(int i=0;i<15;i++)
      if(cnt[i]==4){
	cout << "four card" << endl;
	fg=1;
	break;;
      }
    if(fg)continue;

    int fg2=0,fg3=0;
    for(int i=0;i<14;i++){
      if(cnt[i]==2)fg2++;
      if(cnt[i]==3)fg3=1;
    }
    if(fg2 && fg3){
      	cout << "full house" << endl;
	continue;
    }

    for(int i=0;i+4<15;i++){
      if(cnt[i] & cnt[i+1] & cnt[i+2] & cnt[i+3] &cnt[i+4]){
	cout << "straight" << endl;
	fg=1;
	break;;
      }
    }
    if(fg)continue;

    if(fg3){
      cout << "three card" << endl;
      continue;
    }

    if(fg2==2){
      cout << "two pair" << endl;
      continue;
    }

    if(fg2==1){
      cout <<"one pair" << endl;
      continue;
    }

    cout << "null" << endl;
  }

  return 0;
}
#include <cstdio>
#include <functional>
#include <algorithm>

using namespace std;

/** Application main entry point. */
int main (
  int     argc,
  char  * argv[ ]
  )
{
  int d[ 5 ];
  int i;

  while ( scanf ( " %d,%d,%d,%d,%d"
                , d, d + 1, d + 2, d + 3, d + 4 ) == 5 )
  {
    int c[ 13 ] = { 0 };

    sort ( d, d + 5 );
    for ( i = 0; i < 5; ++i )
    {
      ++c[ d[ i ] - 1 ];
    }
    sort ( c, c + 13, greater< int > ( ) );

    if ( c[ 0 ] == 4 )
    {
      puts ( "four card" );
    }
    else if ( c[ 0 ] == 3 && c[ 1 ] == 2 )
    {
      puts ( "full house" );
    }
    else if ( ( d[ 0 ] == d[ 1 ] - 1
             && d[ 0 ] == d[ 2 ] - 2
             && d[ 0 ] == d[ 3 ] - 3
             && d[ 0 ] == d[ 4 ] - 4 )
           || ( d[ 0 ] == 1
             && d[ 1 ] == 10
             && d[ 2 ] == 11
             && d[ 3 ] == 12
             && d[ 4 ] == 13 ) )
    {
      puts ( "straight" );
    }
    else if ( c[ 0 ] == 3 )
    {
      puts ( "three card" );
    }
    else if ( c[ 0 ] == 2 && c[ 1 ] == 2 )
    {
      puts ( "two pair" );
    }
    else if ( c[ 0 ] == 2 )
    {
      puts ( "one pair" );
    }
    else
    {
      puts ( "null" );
    }
  }

  return ( 0 );
}