#include <bits/stdc++.h>
using namespace std;

string hands( const vector<int>& c ) {
	int n = (int)c.size();

	int p1 = 0;
	int c3 = 0;

	for( int i = 0; i < n; ++i ) {
		if( c[i] == 4 ) {
			return "four card";
		}
		else if( c[i] == 3 ) { c3 += 1; }
		else if( c[i] == 2 ) { p1 += 1; }
	}

	if( c3 > 0 && p1 > 0 ) {
		return "full house";
	}
	else if( c3 > 0 ) {
		return "three card";
	}
	else if( p1 == 2 ) {
		return "two pair";
	}
	else if( p1 == 1 ) {
		return "one pair";
	}

	int x = 0;
	for( int i = 0; i <= n; ++i ) {
		x = (c[i%n] == 1) ? (x+1) : 0;

		if( x == 5 ) { break; }
	}

	return x == 5 ? "straight" : "null";
}

int main() {
	ios_base::sync_with_stdio( false );

	string line;
	while( getline( cin, line ) ) {
		replace( line.begin(), line.end(), ',', ' ' );

		istringstream iss( line );
		vector<int> cnt( 13 );
		int cd;
		while( iss >> cd ) { cnt[cd-1] += 1; }

		cout << hands( cnt ) << '\n';
	}

	return 0;
}


#include <stdio.h>
int main(){
int x[5],i,j;
while(scanf("%d,%d,%d,%d,%d",&x[0],&x[1],&x[2],&x[3],&x[4])!=EOF){
for(j=0;j<5;j++){
for(i=0;i<4;i++){
if(x[i]>x[i+1]){
int g=x[i+1];
x[i+1]=x[i];
x[i]=g;
}}}
if(x[0]==x[1] && x[1]==x[2] && x[2]==x[3]){
printf("four card\n");
continue;
}
if(x[1]==x[2] &&x[2]==x[3]&&x[3]==x[4]){
printf("four card\n");
continue;
}
if(x[0]==x[1]&&x[1]==x[2]&&x[3]==x[4]){
printf("full house\n");
continue;
}
if(x[0]==x[1]&&x[2]==x[3]&&x[3]==x[4]){
printf("full house\n");
continue;
}
if(x[0]<=10 && x[0]+1==x[1]&&x[1]+1==x[2]&&x[2]+1==x[3]&&x[3]+1==x[4]){
printf("straight\n");
continue;
}
if(x[0]==1&&x[1]==10&&x[2]==11&&x[3]==12&&x[4]==13){
printf("straight\n");
continue;
}
if(x[0]==x[1]&&x[1]==x[2]){
printf("three card\n");
continue;
}
if(x[1]==x[2]&&x[3]==x[2]){
printf("three card\n");
continue;
}
if(x[2]==x[3]&&x[3]==x[4]){
printf("three card\n");
continue;
}
if(x[0]==x[1] && x[2]==x[3]){
printf("two pair\n");
continue;
}
if(x[0]==x[1] && x[2]==x[3]){
printf("two pair\n");
continue;
}
if(x[0]==x[1]&&x[3]==x[4]){
printf("two pair\n");
continue;
}
if(x[1]==x[2]&&x[3]==x[4]){
printf("two pair\n");
continue;
}
if(x[0]==x[1]){
printf("one pair\n");
continue;
}
if(x[2]==x[1]){
printf("one pair\n");
continue;
}
if(x[2]==x[3]){
printf("one pair\n");
continue;
}
if(x[3]==x[4]){
printf("one pair\n");
continue;
}
printf("null\n");
}
return 0;
}