#include <iostream>
#include <map>
#include <string>
#include <vector>
#include <cstdlib>
#include <algorithm>

using namespace std;


vector<string> split(const string &str, char delim){
  vector<string> res;
  size_t current = 0, found;
  while((found = str.find_first_of(delim, current)) != string::npos){
    res.push_back(string(str, current, found - current));
    current = found + 1;
  }
  res.push_back(string(str, current, str.size() - current));
  return res;
}

int main()
{
	string s;
	while(cin >> s)
	{
		vector<string> _s = split(s,',');
		vector<int> a,b;
		map<int,int> counter;
		for(int i=0;i<_s.size();i++)
		{
			a.push_back(atoi(_s[i].c_str()));
		}
		sort(a.begin(),a.end());

		for(int i=0;i<a.size();i++)
		{
			counter[a[i]]++;

			if(b.empty())
			{
				b.push_back(a[i]);
			}
			else
			{
				bool flag = true;
				for(int j=0;j<b.size();j++)
				{
					if(b[j] == a[i])	flag = false;
				}
				if(flag) b.push_back(a[i]);
			}
		}

		//cout << b.size() << endl
		bool ans_f = true;
		for(int i=0; i<counter.size();i++)
		{
			if(counter[b[i]] == 4) cout << "four card" << endl;
		}

		for(int i=0;i<counter.size();i++)
		{
			if(counter[b[i]] == 3)
			{
				for(int j=0; j<counter.size();j++)
				{
					if(counter[b[j]] == 2) 
					{
						cout << "full house" << endl;
						ans_f = false;
						break;
					}
					else
					{
						cout << "three card" << endl;
						ans_f = false;
						break;
					}
				}
			}
		}

		for(int i=0;i<counter.size();i++)
		{
			if(counter[b[i]] == 2 && ans_f)
			{
				for(int j=0;j<counter.size();j++)
				{
					if(i != j && counter[b[j]] == 2 && ans_f)
					{
						cout << "two pair" << endl;
						ans_f = false;
						break;
					}
				}
				if(ans_f) 
				{
					cout << "one pair" << endl;
				}
			}
		}

		if(counter.size() == 5)
		{
			int temp = b[0];
			if(b[1] == temp+1 && b[2] == temp+2 && b[3] == temp+3 && b[4] == temp+4)
			{
				cout << "straight" << endl;
			}
			else if(temp == 1 && b[1] == 10 && b[2] == 11 && b[3] == 12 && b[4] == 13)
			{
				cout << "straight" << endl;
			}
			else
			{
				cout << "null" << endl;
			}
		}

	}
	return 0;
}