#include<iostream>
#include<algorithm>

using namespace std;
 
int main(){
    int A[5];
    while( cin >> A[0] >> A[1] >> A[2] >> A[3] >> A[4] ) {
        sort(A,A+5);
        if( (A[0] == A[1]) && (A[2] == A[3]) && (A[2] == A[1]) )
		cout << "four card\n";
		
        else if( (A[1] ==A[2]) && (A[3] == A[4]) && (A[3] == A[2]) )
		cout << "four card\n";
		
        else if( (A[0] == A[1]) && (A[1] == A[2]) && (A[3] == A[4]) )
		cout << "full house\n";
		
        else if( (A[0] == A[1]) && (A[2] == A[3]) && (A[3] == A[4]) )
		cout << "full house\n";
		
        else if( (A[0] == 1) && (A[1] == 10) &&(A[2] == 11)
				&& (A[3] == 12) && (A[4] == 13) )
		cout << "straight\n";
		
        else if((A[0] + 1 == A[1]) && (A[1] +1 == A[2]) && (A[2] + 1 == A[3])
				&& (A[3] + 1 == A[4]) )
		cout << "straight\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])) )
			cout << "three card\n";
			
        else if
            ( ( (A[0] == A[1]) && ((A[2] == A[3]) || (A[3] == A[4]))) ||
            ( ( A[1] == A[2]) && (A[3] == A[4])) )
			cout << "two pair\n";
			
        else if
		((A[0] == A[1]) || (A[1] == A[2]) || (A[2] == A[3]) || (A[3] == A[4]))
		cout << "one pair\n";
		
        else 
		cout << "null\n";
    }
}
