#include<iostream>
#include<stdio.h>
using namespace std;

bool is_straight(int* cards) {
	for (int i = 0; i < 4; i++) {
		for(int j=0;j<4;j++){
			if (cards[j] > cards[j + 1]) {
				int tmp = cards[j];
				cards[j] = cards[j + 1];
				cards[j + 1] = tmp;
			}
		}
	}
	if (cards[0] == 1 && cards[1] == 10 && cards[2] == 11 && cards[3] == 12 && cards[4] == 13)return true;
	int tmp = cards[0];
	if (tmp + 1 == cards[1] && tmp + 2 == cards[2] && tmp + 3 == cards[3] && tmp + 4 == cards[4])return true;
	return false;
}
int main() {
	int cards[5];
	while (scanf("%d,%d,%d,%d,%d", &cards[0], &cards[1], &cards[2], &cards[3], &cards[4]) != EOF) {
		int same_cards1 = 0, same_cards2 = 4; int tmp;

		for (int i = 0; i < 5; i++) {
			tmp = 0;
			for (int j = 0; j < 5; j++) {
				if (cards[i] == cards[j])tmp++;
			}
			if (tmp > same_cards1)same_cards1 = tmp;
			if (tmp < same_cards2)same_cards2 = tmp;
		}
		if (same_cards1 == 4)cout << "four cards" << endl;
		else if (same_cards1 == 3 && same_cards2 == 2)cout << "full house" << endl;
		else if (is_straight(cards))cout << "straight" << endl;
		else if (same_cards1==3)cout << "three cards" << endl;
		else if (5-same_cards1-same_cards2==2)cout << "two pair" << endl;
		else if (same_cards1 == 2)cout << "one pair" << endl;
		else cout << "null" << endl;
	}
}
