#include<iostream>
#include<algorithm>
using namespace std;

string paircard(int card[]){

		for(int i=0,k;i<5;i++){
			int x = card[i],y; int ansx =1,ansy=1;
			for(k=0;k<5;k++) if(card[k] != x){ y = card[k]; break;};
			for(int j=0;j<5;j++){
				if(i!=j) if(x == card[j]) ansx++;
				if(k!=j) if(y == card[j]) ansy++;
			}
			if(ansx < ansy) swap(ansx,ansy);
			if(ansx == 4 && ansy ==1) return "four card";
			if(ansx == 3 && ansy ==2) return "full house";
			if(ansx == 3 && ansy ==1) return "three card";
			if(ansx == 2 && ansy ==2) return "two pair";
			if(ansx == 2 && ansy ==1) return "one pair";
		}
		return "null";
}

bool straight(int card[]){
	int ans = 1;
	if(card[0] == 1){
			for(int i=0;i+1<4;i++){
				if(card[1]+i+1 == card[i+2]) ans++;
			}
			if(card[4] == 13 && ans == 4) return true;
		}
	ans = 1;
	for(int i=0;i+1<5;i++){
		if(card[0]+i+1 == card[i+1]) ans++;
	}
	if(ans==5) return true;

	return false;
}


string poker(int card[]){

 	if(straight(card)){return "straight";}

	return paircard(card);
}


int main(){
	char k; int card[5];
	while(1){
		cin>>card[0]>>k>>card[1]>>k>>card[2]>>k>>card[3]>>k>>card[4];
				if(cin.eof())break;
		sort(card,card+5);
		cout << poker(card) << endl;
	}
}