#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>

#define INPUT_FROM_FILE (0) 
#if INPUT_FROM_FILE
#include <fstream>
#endif

int main(int argc, char **argv){
	std::vector<int> cards(5);

#if INPUT_FROM_FILE
	//std::ifstream ifs("test.txt");
	FILE *fp = fopen("test.txt", "r");
#endif


#if INPUT_FROM_FILE
	while(fscanf(fp,"%d,%d,%d,%d,%d", &cards[0], &cards[1], &cards[2], &cards[3], &cards[4]) != EOF){
#else
	while(scanf("%d,%d,%d,%d,%d", &cards[0], &cards[1], &cards[2], &cards[3], &cards[4]) != EOF){
#endif
		std::sort(cards.begin(), cards.end());

		//4cards
		if((cards[0] == cards[1] && cards[1] == cards[2] && cards[2] == cards[3]) ||
			(cards[1] == cards[2] && cards[2] == cards[3] && cards[3] == cards[4])){
			std::cout << "four card" << std::endl;
		}
		//full house
		else if((cards[0] == cards[1] && cards[2] == cards[3] && cards[3] == cards[4]) ||
			(cards[0] == cards[1] && cards[1] == cards[2] && cards[3] == cards[4])){
			std::cout << "full house" << std::endl;
		}
		else if((cards[0] == 1 && cards[1] == 10 && cards[2] == 11 && cards[3] == 12 && cards[4] == 13) ||
			(cards[0] == (cards[1] - 1) && cards[1] == (cards[2] - 1) && cards[2] == (cards[3] - 1) && cards[3] == (cards[4] - 1))){
			std::cout << "straight" << std::endl;
		}
		else if((cards[0] == cards[1] && cards[1] == cards[2]) ||
			(cards[1] == cards[2] && cards[2] == cards[3]) ||
			(cards[2] == cards[3] && cards[3] == cards[4])){
			std::cout << "three card" << std::endl;
		}
		else{
			cards.erase(std::unique(cards.begin(), cards.end()), cards.end());
			if(cards.size() == 3){
				std::cout << "two pair" << std::endl;
			}
			else if(cards.size() == 4){
				std::cout << "one pair" << std::endl;
			}
			else{
				std::cout << "null" << std::endl;
			}
			cards.resize(5);
		}
		
	}

	return 0;
}
