import std.stdio, std.conv;
import std.array, std.algorithm, std.range;

void main()
{
    foreach(s;stdin.byLine())
    {
        auto c = new int[](13);
        foreach(n;s.split(",").map!(x=>x.to!int()-1))
            ++c[n];
        auto a = c.filter!"a!=0"().array().sort!"a>b"();
        string r = "null";
        if(a[0]==4) r = "four card";
        else if(a[0]==3 && a[1]==2) r = "full house";
        else if(a[0]==3) r = "three card";
        else if(a[0]==2 && a[1]==2) r = "two pair";
        else if(a[0]==2) r = "one pair";
        else if(find(c,repeat(0,8)).length==12 || !find(c,repeat(1,5)).empty) r = "straight";
        else r = "null";
        writeln(r);
    }
}