#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int yaku(int*);
void input(string,int*);
int cmp(const void *a, const void *b);
int main() {
	int a[5],ans;
	string in;
	while (cin >> in) {
		input(in, a);
		ans = yaku(a);
		if (ans == 7) {
			cout << "four card\n";
			continue;
		}
		if (ans == 6) {
			cout << "full house\n";
			continue;
		}
		if (ans == 5) {
			cout << "straight\n";
			continue;

		}
		if (ans == 4) {
			cout << "three card\n";
			continue;
		}
		if (ans == 3) {
			cout << "two pair\n";
			continue;
		}
		if (ans == 2) {
			cout << "one pair\n";
			continue;
		}
		cout << "null\n";
	}
}

void input(string in,int *a) {
	int n = 0, m = 0;
	for (int i = 0; i < in.size(); i++) {
		if (in[i] == ',') {
			a[m++] = n;
			n = 0;
			continue;
		}
		n = n * 10 + in[i] - '0';
	}
	a[4] = n;
	qsort(a, 5, sizeof(int), cmp);
	return;
}

int cmp(const void *a, const void *b) {
	return *(int*)a - *(int*)b;
}

int yaku(int *a) {
	bool x = true, y = false;
	for (int i = 1; i < 5; i++) {
		if (a[i - 1] + 1 != a[i]) {
			if (i == 1) {
				if (a[0] == 1) {
					if (a[1] == 10) {
						if (a[2] == 11) {
							if (a[3] == 12) {
								if (a[4] == 13)
									return 5;
							}
						}
					}
				}
			}
			x = false;
			break;
		}
	}
	if (x)
		return 5;
	int n[13] = {}, two = 0, three = 0;
	for (int i = 0; i < 5; i++) {
		if (++n[a[i] - 1] == 4)
			return 7;
		if (n[a[i] - 1] == 3) {
			two--;
			three++;
		}
		if (n[a[i] - 1] == 2)
			two++;
	}
	if (three == 1) {
		if (two == 1)
			return 6;
		return 4;
	}
	if (two == 2)
		return 3;
	if (two == 1)
		return 2;
	return 1;
}
