#include <stdio.h>
#include <stdcomp.h>
#include <algorithm.h>

using namespace std;

int main(void)
{
	int card[5];
	int count1;
	int count2;
	int straight;
	int i;
	int j;
	char conma;
	
	while (scanf("%d", &card[0]) != EOF){
		for (i = 1; i < 5; i++){
			scanf("%c %d", &conma, &card[i]);
		}
		sort(card, card + 5);
		count1 = 0;
		count2 = 0;
		straight = 0
		
		for (i = 0; i < 4; i++){
			if (card[i] + 1 == card[i + 1]){
				straight++;
			}
			if (card[i] == card[i + 1] && card[i] == card[0]){
				count1++;
			}
			else if (card[i]  == card[i + 1] && card[i] != card[0]){
				count2++;
			}
		}
		
		if ((count1 == 1 && count2 == 0) || (count1 == 0 && count2 == 1)){
			printf("one pair\n");
		}
		else if (count1 == 1 && count1 == count2){
			printf("two pair\n");
		}
		else if (count1 == 2 || count2 == 2){
			printf("three card\n");
		}
		else if (straight == 4){
			printf("straight\n");
		}
		else if (count1 == 3 || count2 == 3){
			printf("four card\n");
		}
		else {
			printf("null\n");
		}
	}
	
	return 0;
}