#include<stdio.h>

int main(void){
	int hand[5];
	int cut_i,cut_j,tem;

	scanf("%d",&hand[0]);
	for(cut_i=1;cut_i<5;cut_i++){
		scanf(",%d",&hand[cut_i]);
	}

	for(cut_i=0;cut_i<4;cut_i++){
		for(cut_j=cut_i;cut_j<5;cut_j++){
			if(hand[cut_i]>hand[cut_j]){
				tem = hand[cut_i];
				hand[cut_i] = hand[cut_j];
				hand[cut_j] = tem;
			}
		}
	}

	if((hand[0] == hand[3]) || ( hand[1] == hand[4])){
		printf("four card\n");
	}
	else if((hand[0] == hand[1] && hand[2] == hand[4]) ||(hand[0] == hand[2] && hand[3] == hand[4])){
		printf("full house\n");
	}
	else if((hand[1]+1 == hand[2]) && (hand[2]+1 == hand[3]) && (hand[3]+1 == hand[4]) &&(((hand[0] ==1) && (hand[4] == 13))||(hand[0]+1 == hand[1]))){
		printf("straight\n");	
	}
	else if((hand[2] == hand[4]) ||(hand[0] == hand[2])){
		printf("three card\n");
	}
	else if( ( ( (hand[0] == hand[1]) && ( (hand[2] == hand[3]) || (hand[3] == hand[4]) ))) ||
		( (hand[1] == hand[2]) &&(hand[3] == hand[4]) ) ){
			printf("two pair\n");
	}
	else if((hand[0] == hand[1]) ||(hand[1] == hand[2])||(hand[2] == hand[3])||(hand[3] == hand[4])){
		printf("one pair\n");
	}
	else {
		printf("null\n");
	}
	return 0;
}