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

#define N 5

int main()
{
	vector<int> card(N);
	string handName[7] = {"null", "one pair", "two pair", "three card", "straight", "full house", "four card"};
	int hand;
	int i;
	int same, series;

	while (scanf("%d,%d,%d,%d,%d", &card[0], &card[1], &card[2], &card[3], &card[4]) != EOF) {
		sort(card.begin(), card.end());

		hand = 0;

		for (i = 1; i < N; i++) {
			if (card[i-1] == card[i]) hand = 1;
		}

		same = 0;
		series = 0;
		for (i = 1; i < N; i++) {
			if (card[i-1] == card[i]) {
				same++;
				if (same==2) {
					hand = 3;
					break;
				} else if (same==1 && series==1) {
					hand = 2;
				}
			} else {
				if (same) series++;
				same = 0;
			}
		}

		series = 0;
		for (i = 1; i < N; i++)
			if (card[i] == card[i-1]+1) series++;
		if (series == 4) hand = 4;
		if (card[0]==1 && card[1]==10 && card[2]==11 && card[3]==12 && card[4]==13)
			hand = 4;

		same = 0;
		series = 0;
		for (i = 1; i < N; i++) {
			if (card[i-1] == card[i]) {
				same++;
				if (same==2 && series==1) {
					hand = 5;
					break;
				}
			} else {
				if (same) series++;
				same = 0;
			}
		}

		same = 0;
		for (i = 1; i < N; i++) {
			if (card[i-1] == card[i]) {
				same++;
				if (same==3) {
					hand = 6;
					break;
				}
			} else {
				same = 0;
			}
		}

		cout<<handName[hand]<<endl;
	}
	return 0;
}