import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.container;
import std.datetime;

void main()
{
	foreach (line; stdin.byLine) {
		auto x = line.split(",").map!(to!int).array.sort.array;
		auto u = x.uniq.array.length;
		if (u == 2) {
			auto n = x.count(x[0]);
			if (n == 2 || n == 3) {
				writeln("full house");
			} else {
				writeln("four card");
			}
		} else if (u == 3) {
			foreach (e; x) {
				if (x.count(e) == 3) {
					writeln("three card");
					break;
				} else if (x.count(e) == 2) {
					writeln("two pair");
					break;
				}
			}
		} else if (u == 4) {
			writeln("one pair");
		} else {
			auto arr = iota(x[0], x[0]+5).array;
			auto aarr = 1 ~ iota(10, 14).array;
			if (x == arr || x == aarr) {
				writeln("straight");
			} else {
				writeln("null");
			}
		}
	}
}