#include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>
#include <functional>

using namespace std;

int countN( vector<int> hand, int n )
{
	int res = 0;

	for ( unsigned int i = 0; i < hand.size(); i++ )
	{
		if ( hand[i] == n )
		{
			res++;
		}
	}

	return res;
}

bool fourcard( vector<int> hand )
{
	map<int,int> cards;

	for ( unsigned int i = 0; i < hand.size(); i++ )
	{
		cards[ hand[i] ]++;
	}

	for ( map<int,int>::iterator it = cards.begin(); it != cards.end(); it++ )
	{
		if ( (*it).second == 4 )
		{
			return true;
		}
	}

	return false;
}

bool fullhouse( vector<int> hand )
{
	map<int,int> cards;
	bool two, three;
	two = three = false;

	for ( unsigned int i = 0; i < hand.size(); i++ )
	{
		cards[ hand[i] ]++;
	}

	for ( map<int,int>::iterator it = cards.begin(); it != cards.end(); it++ )
	{
		if ( (*it).second == 2 )
		{
			two = true;
		}
		if ( (*it).second == 3 )
		{
			three = true;
		}
	}

	return two && three;
}

bool straight( vector<int> hand )
{
	sort( hand.begin(), hand.end() );

	if ( hand[0] == 1 )
	{
		if ( hand[1] != 10 )
		{
			return false;
		}

		for ( unsigned int i = 1; i + 1 < hand.size(); i++ )
		{
			if ( hand[i] + 1 != hand[i+1] )
			{
				return false;
			}
		}
	}
	else
	{
		for ( unsigned int i = 0; i + 1 < hand.size(); i++ )
		{
			if ( hand[i] + 1 != hand[i+1] )
			{
				return false;
			}
		}
	}

	return true;
}

bool threecard( vector<int> hand )
{
	map<int,int> cards;

	for ( unsigned int i = 0; i < hand.size(); i++ )
	{
		cards[ hand[i] ]++;
	}

	for ( map<int,int>::iterator it = cards.begin(); it != cards.end(); it++ )
	{
		if ( (*it).second == 3 )
		{
			return true;
		}
	}

	return false;
}

bool twopair( vector<int> hand )
{
	int pairs = 0;
	map<int,int> cards;

	for ( unsigned int i = 0; i < hand.size(); i++ )
	{
		cards[ hand[i] ]++;
	}

	for ( map<int,int>::iterator it = cards.begin(); it != cards.end(); it++ )
	{
		if ( (*it).second == 2 )
		{
			pairs++;
		}
	}

	return pairs == 2;
}

bool onepair( vector<int> hand )
{
	map<int,int> cards;

	for ( unsigned int i = 0; i < hand.size(); i++ )
	{
		cards[ hand[i] ]++;
	}

	for ( map<int,int>::iterator it = cards.begin(); it != cards.end(); it++ )
	{
		if ( (*it).second == 2 )
		{
			return true;
		}
	}

	return false;
}

int main()
{
	string buffer;

	while ( cin >> buffer )
	{
		for ( unsigned int i = 0; i < buffer.length(); i++ )
		{
			if ( buffer[i] == ',' )
			{
				buffer[i] = ' ';
			}
		}

		istringstream iss( buffer );
		vector<int> hand;

		for ( int i = 0; i < 5; i++ )
		{
			int input;
			iss >> input;
			hand.push_back( input );
		}

		if ( fourcard( hand ) )
		{
			cout << "four card";
		}
		else if ( fullhouse( hand ) )
		{
			cout << "full house";
		}
		else if ( straight( hand ) )
		{
			cout << "straight";
		}
		else if ( threecard( hand ) )
		{
			cout << "three card";
		}
		else if ( twopair( hand ) )
		{
			cout << "two pair";
		}
		else if ( onepair( hand ) )
		{
			cout << "one pair";
		}
		else
		{
			cout << "null";
		}
		
		cout << endl;
	}

	return 0;
}