#include<iostream>
#include<algorithm>

using namespace std;

int main(){

	bool test = false;
	int A[13] = {};
	int a;
	
	while(1) {
	for(int i=0;i<5;i++) {
		
		cin >> a;
		
		A[a-1]++;
	
	}
	if ( A[0] == 1 && A[9] == 1 && A[10] == 1 && A[11] == 1 && A[12] ==1 ) {
	cout << "straight\n";
	continue;
}
	
	for(int i=0;i<9;i++)
	if ( A[i] == 1 && A[i+1] == 1 && A[i+2] == 1 && A[i+3] == 1 && A[i+4] ==1 ) {
	test = true;
	continue;
}
	
	sort(A, A+13);
	
	if(test)
	cout << "straight\n";
	
	else if( A[11] == 1 && A[12] == 2)
	cout << "one pair\n";
	
	else if( A[11] == 2 && A[12] == 2)
	cout << "two pair\n";
	
	else if( A[11] == 1 && A[12] == 3 )
	cout << "three card\n";
	
	else if( A[11] == 2 && A[12] == 3)
	cout << "full house\n";
	
	else if( A[12] == 4)
	cout << "four card\n";
	
	else 
	cout << "null\n";
	for(int i=0;i<13;i++)
	A[i] = 0;
}
    return 0;
}
