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

int main() {
	int num[5];
	char c;
	while (cin >> num[0]) {
		for (int i = 1; i < 5; i++) {
			cin >> c >> num[i];
		}
		sort(num, num + 5);
		int pair[2] = {}, cont = 0;
		for (int i = 1, j = 0; i < 5; i++) {
			if (num[i] == num[i - 1]) pair[j]++;
			else if (pair[j]) j++;
			if (num[i] == num[i - 1] + 1) cont++;
		}
		if (cont == 4) cout << "straight" << endl;
		else if (cont == 3 && num[0] == 1 && num[1] == 10) cout << "straight" << endl;
		else {
			sort(pair, pair + 2);
			if (pair[1] == 3) {
				cout << "four card" << endl;
			}
			else if (pair[1] == 2) {
				if (pair[0] == 1) {
					cout << "full house" << endl;
				}
				else {
					cout << "three card" << endl;
				}
			}
			else if (pair[1] == 1) {
				if (pair[0] == 1) {
					cout << "two pair" << endl;
				}
				else {
					cout << "one pair" << endl;
				}
			}
			else {
				cout << "null" << endl;
			}
		}
	}
}
