#include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <algorithm>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <string>
#include <cstring>
#include <complex>
#include <ctime>
#include <cstdlib>

using namespace std;

inline int to_int(string s) {int v; istringstream sin(s); sin >> v; return v;}
template<class T> inline string to_str(T x) {ostringstream sout; sout << x; return sout.str();}

typedef long long ll;

int main()
{
	string card;

	while(cin >> card)
	{
		string Ncard;

		for(int i = 0; i < card.size(); i++)
		{
			if(card[i] != ',')
			{
				Ncard += card[i];
			}
		}
		card = Ncard;

		sort(card.begin(), card.end());

		bool straight = true;

		
		char st = card[0] + 1;
		for(int i = 1; i < 5; i++)
		{
			if(card[i] == st)
			{
				st++;
			}
			else
			{
				straight = false;
				break;
			}
		}
		if(straight)
		{	
			cout << "straight" << endl;
			continue;
		}

		Ncard.clear();
		int cnt = 1;
		for(int i = 0; i < 5; i++)
		{
			
			if(card[i] == card[i+1])
			{
				cnt++;
			}
			else
			{
				Ncard += cnt + '0';
				Ncard += card[i];
				cnt = 1;
			}
		}

		card = Ncard;

		if(card.size() == 4)
		{
			if(card[0] == '4' || card[2] == '4')
			{
				cout << "four card" << endl;
			}
			else if(card[0] == '3' && card[3] == '2' || card[0] == '2' && card[3] == '2')
			{
				cout << "full house" << endl;
			}
		}
		else if(card.size() == 6)
		{
			if(card[0] == '3' || card[2] == '3' || card[4] == '3')
			{
				cout << "three card" << endl;
			}
			else if(card[0] == '2' && card[2] =='2' || card[2] == '2' && card[4] =='2' || card[2] == '2' && card[6] == '2')
			{
				cout << "two pair" << endl;
			}
		}

		else if(card.size() == 8)
		{
			cout << "one pair" << endl;
		}
		else
		{
			cout << "null" << endl;
		}
	}
}