#include <iostream>
#include <array>
#include <numeric>
#include <algorithm>
#include <cstdint>

int main()
{
	std::uint16_t num;
	while (std::cin >> num) {
		typedef std::array<std::uint16_t, 13> CardArray;
		CardArray cards;
		cards.fill(0);
		++cards[num - 1];
		for (std::size_t i = 0; i < 4; ++i) {
			char comma;
			std::cin >> comma >> num;
			++cards[num - 1];
		}

		CardArray::iterator i;
		if (std::find(cards.begin(), cards.end(), 4) != cards.end()) {
			std::cout << "four card" << std::endl;
		}
		else if (std::find(cards.begin(), cards.end(), 3) != cards.end()) {
			if (std::find(cards.begin(), cards.end(), 2) != cards.end()) {
				std::cout << "full house" << std::endl;
			}
			else {
				std::cout << "three card" << std::endl;
			}
		}
		else if ((i = std::find(cards.begin(), cards.end(), 2)) != cards.end()) {
			if (std::find(i + 1, cards.end(), 2) != cards.end()) {
				std::cout << "two pair" << std::endl;
			}
			else {
				std::cout << "one pair" << std::endl;
			}
		}
		else {
			if (cards[0] == 1 and std::accumulate(cards.begin() + 9, cards.end(), 0u) == 4u) {
				std::cout << "straight" << std::endl;
			}
			else {
				i = std::find(cards.begin(), cards.end(), 1);
				if (std::accumulate(i, i + 5, 0u) == 5u) {
					std::cout << "straight" << std::endl;
				}
				else {
					std::cout << "null" << std::endl;
				}
			}
		}
	}
	return 0;
}