#include <iostream>
#include <algorithm>
#include <functional>
using namespace std;

int nPair(int *card);
bool isThreeCard(int *card);
bool isStraight(int *card);
bool isFullHouse(int *card);
bool isFourCard(int *card);

int main()
{
	int card[5] = {0};
	char c;

	while (cin >> card[0])
	{
		if (cin.eof()) break;
		cin >> c >> card[1] >> c >> card[2] >> c >> card[3] >> c >> card[4];

		if (isFourCard(card))
			cout << "four card" << endl;
		else if (isFullHouse(card))
			cout << "full house" << endl;
		else if (isStraight(card))
			cout << "straight" << endl;
		else if (isThreeCard(card))
			cout << "three card" << endl;
		else if (nPair(card) == 2)
			cout << "two pair" << endl;
		else if (nPair(card) == 1)
			cout << "one pair" << endl;
		else
			cout << "null" << endl;
	}
	return 0;
}

int nPair(int *card)
{
	int c[13] = {0}, i, n = 0;

	for (i = 0; i < 5; i++)
		c[card[i] - 1]++;

	sort(c, c+13, greater<int>());

	for (i = 0; i < 5; i++)
		if (c[i] == 2)
			n++;
	return n;
}

bool isThreeCard(int *card)
{
	int c[13] = {0}, i;

	for (i = 0; i < 5; i++)
		c[card[i] - 1]++;

	sort(c, c+13, greater<int>());

	for (i = 0; i < 5; i++)
	{
		if (c[i] == 3)
			return true;
	}
	return false;
}

bool isFourCard(int *card)
{
	int c[13] = {0}, i;

	for (i = 0; i < 5; i++)
		c[card[i] - 1]++;

	sort(c, c+13, greater<int>());

	for (i = 0; i < 5; i++)
	{
		if (c[i] == 4)
			return true;
	}
	return false;
}

bool isStraight(int *card)
{
	int c[13] = {0}, i;
	bool b = true, d;

	for (i = 0; i < 5; i++)
		c[card[i] - 1]++;

	if (c[1] == 1 && c[12] == 1)
		return false;

	for (i = 1; i < 13; i++)
		if (c[i] == 1 && b)
			b = true;
		else
		{
			b = false;
			break;
		}

	sort(c, c+13, greater<int>());
	
	if (b == true)
	{
		for (i = 0; i < 5; i++)
		{
			if (c[i] == 1)
				d = true;
			else
				d = false;
		}
	}
	else
	{
		return false;
	}
	if (b == true)
		return true;
	return false;
}

bool isFullHouse(int *card)
{
	int c[13] = {0}, i;

	for (i = 0; i < 5; i++)
		c[card[i] - 1]++;

	sort(c, c+13, greater<int>());
	
	if (c[0] == 3 && c[1] == 2)
		return true;
	else
		return false;
}