#include <iostream>
#include <algorithm>
using namespace std;
int main(){
	int a[5];
	char c;
	while(cin >> a[0]){
		int card[13] = {0};
		for(int i = 1; i < 5; i++) cin >> c >> a[i];
		for(int i = 0; i < 5; i++) card[a[i]-1]++;
		int pair = 0, cards = 0, straight = 1;
		for(int i = 0; i < 13; i++){
			if(card[i] == 2) pair ++;
			cards = max(cards, card[i]);
		}
		sort(a, a+5);
		for(int i = 1; i < 5; i++) if(a[i]-a[i-1] != 1) straight = 0;
		if(a[0]==1 && a[1]==10 && a[2]==11 && a[3]==12 && a[4]==13) straight = 1;

		if(cards == 4) cout << "four card" << endl;
		else if(cards == 3 && (a[0]==a[1] || a[3]==a[4])) cout << "full house" << endl;
		else if(straight) cout << "straight" << endl;
		else if(cards == 3) cout << "three card" << endl;
		else if(pair == 2) cout << "two pair" << endl;
		else if(pair) cout << "one pair" << endl;
		else cout << "null" << endl;
	}
	return 0;
}