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

int main(){
	int a[5],i,pair;
	while(scanf("%d,%d,%d,%d,%d",&a[0],&a[1],&a[2],&a[3],&a[4]) != EOF){
		pair = 0;
		sort(a,a + 5);
		if(a[1] == a[2] && a[2] == a[3] && (a[0] == a[1] || a[3] == a[4])) printf("four card\n");
		else if((a[0] == a[1] && a[2] == a[3] && a[3] == a[4]) || (a[0] == a[1] && a[1] == a[2] && a[3] == a[4])) printf("full house\n");
		else if((a[0] == a[1] && a[1] == a[2]) || (a[1] == a[2] && a[2] == a[3]) || (a[2] == a[3] && a[3] == a[4])) printf("three card\n");
		else if((a[0] + 1 == a[1] && a[1] + 1 == a[2] && a[2] + 1 == a[3] && a[3] + 1 == a[4]) || (a[0] == 1 && a[1] == 10 && a[2] == 11 && a[3] == 12 && a[4] == 13)) printf("straight\n");
		else {
			for(i = 0;i < 3;i++){
				if(a[i] == a[i + 1]) pair++;
			}
			if(pair == 2) printf("two pair\n");
			else if(pair == 1) printf("one pair\n");
			else printf("null\n");
		}
		printf("\n");
	}
	return 0;
}