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

bool is_straight(int* cards) {
	bool array[13] = { false };
	for(int i=0;i<5;i++){
		array[cards[i] - 1] = true;
	}
	if (array[0] && array[1] && array[12])return false;
	int tmp = 0;
	for (int i = 0; i < 20; i++) {
		if (i>12) {
			if (array[i - 13] == true)tmp++;
			else tmp = 0;
		}
		else {
			if (array[i] == true)tmp++;
			else tmp = 0;
		}
		if (tmp == 5)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;//clear
		else if (same_cards1 == 3 && same_cards2 == 2)cout << "full house" << endl;//clear
		else if (is_straight(cards))cout << "straight" << endl;
		else if (same_cards1==3)cout << "three cards" << endl;//clear
		else if (5-same_cards1-same_cards2==2)cout << "two pair" << endl;//clear
		else if (same_cards1 == 2)cout << "one pair" << endl;//clear
		else cout << "null" << endl;
	}
}
