#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int main(){
	char a;
	int c[5]={0};
	while(cin>>c[4]>>a>>c[3]>>a>>c[2]>>a>>c[1]>>a>>c[0]){
		sort(c,c+5);
		//cout<<c[4]<<" "<<c[3]<<" "<<c[2]<<" "<<c[1]<<" "<<c[0];
		if(c[4]==c[1]||c[3]==c[0])cout<<"four card"<<endl;
		else if((c[4]==c[2]&&c[0]==c[1])||(c[0]==c[2]&&c[3]==c[4]))cout<<"full house"<<endl;
		else if((c[4]==(c[3]+1)&&c[3]==(c[2]+1)&&c[2]==(c[1]+1)&&c[1]==(c[0]+1))||(c[0]==1&&c[1]==10&&c[2]==11&&c[3]==12&&c[4]==13))cout<<"straight"<<endl;
		else if((c[4]==c[2]&&c[1]!=c[0])||c[3]==c[1]||(c[2]==c[0]&&c[4]!=c[3]))cout<<"three card"<<endl;
		else if((c[4]==c[3]&&(c[2]==c[1]||c[1]==c[0]))||(c[3]==c[2]&&c[1]==c[0])||(c[1]==c[0]&&(c[4]==c[3]||c[3]==c[2])))cout<<"two pair"<<endl;
		else if(c[4]==c[3]||c[3]==c[2]||c[2]==c[1]||c[1]==c[0])cout<<"one pair"<<endl;
		else cout<<"null"<<endl;
	}
}
