#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int a[5], p, s; char T; string S[7] = { "four card","full house","straight","three card","two pair","one pair","null" };
int main() {
	while (cin >> a[0] >> T >> a[1] >> T >> a[2] >> T >> a[3] >> T >> a[4]) {
		sort(a, a + 5);
		for (int i = 0; i < 2; i++) {
			if (a[i] == a[i + 1] && a[i + 1] == a[i + 2] && a[i + 2] == a[i + 3]) {
				p = 0; goto E;
			}
		}
		if (a[0] == a[1] && a[2] == a[3] && a[3] == a[4]) {
			p = 1; goto E;
		}
		if (a[0] == a[1] && a[1] == a[2] && a[3] == a[4]) {
			p = 1; goto E;
		}
		if ((a[0] != a[1] && a[1] != a[2] && a[2] != a[3]) && (a[3] != a[4] && a[0] == a[4] - 4)) {
			p = 2; goto E;
		}
		for (int i = 0; i < 3; i++) {
			if (a[i] == a[i + 1] && a[i + 1] == a[i + 2]) {
				p = 3; goto E;
			}
		}
		s = 0;
		for (int i = 0; i < 4; i++) {
			if (a[i] == a[i + 1]) {
				s++; goto E;
			}
		}
		if (s >= 2) { p = 4; goto E; }
		if (s == 1) { p = 5; goto E; }
		p = 6;
	E:;
		cout << S[p] << endl;
	}
}