#include <iostream>
#include <algorithm>

using namespace std;

int card[5], ccount[13] = {0};

int checkHand();
int checkOnePair();
int checkTwoPair();
int checkThreeCard();
int checkStraight();
int checkFullHouse();
int checkFourCard();

int main() {
	char c;

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

		switch (checkHand()) {
		case 0:
			cout << "null" << endl;
			break;
		case 1:
			cout << "four card" << endl;
			break;
		case 2:
			cout << "full house" << endl;
			break;
		case 3:
			cout << "straight" << endl;
			break;
		case 4:
			cout << "three card" << endl;
			break;
		case 5:
			cout << "two pair" << endl;
			break;
		case 6:
			cout << "one pair" << endl;
			break;
		}

		for (int i = 0; i < 13; i++) {
			ccount[i] = 0;
		}
	}

	return 0;
} 

int checkHand() {
	int result = 0;

	stable_sort(card, card+4);

	for (int i = 0; i < 5; i++) {
		ccount[card[i] - 1]++;
	}

	if (checkOnePair() == 1)	result = 6;
	if (checkTwoPair() == 1)	result = 5;
	if (checkThreeCard() == 1)	result = 4;
	if (checkStraight() == 1)	result = 3;
	if (checkFullHouse() == 1)	result = 2;
	if (checkFourCard() == 1)	result = 1;

	return result;
}

int checkOnePair() {
	for (int i = 0; i < 13; i++){
		if (ccount[i] == 2)	return 1;
	}

	return 0;
}
int checkTwoPair() {
	int cont = 0;
	for (int i = 0; i < 13; i++){
		if (ccount[i] == 2)	cont++;
		if (cont == 2)		return 1;
	}

	return 0;
}
int checkThreeCard() {
	for (int i = 0; i < 13; i++){
		if (ccount[i] == 3)	return 1;
	}

	return 0;
}
int checkStraight() {
	int result = 1;

	if (card[0] >= 11)	return 0;

	if (card[0] == 1) {
		for (int i = 1, j = 10; i < 5; i++, j++) {
			if (card[i] != j) {
				return 0;
			}
		}
	}
	else {
		for (int i = 1, j = card[0] + 1; i < 5; i++, j++) {
			if (card[i] != j) {
				result = 0;
				break;
			}
			if (j == 13){
				j = 0;
			}
		}
	}

	return result;
}
int checkFullHouse() {
	if (checkOnePair() == 1 && checkThreeCard() == 1)
		return 1;
	else
		return 0;
}
int checkFourCard() {
	for (int i = 0; i < 13; i++) {
		if (ccount[i] == 4) {
			return 1;
		}
	}

	return 0;
}