#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
int main(void)
{
    int card[5];
    while(scanf("%d",&card[0])!=EOF)
    {
        for(int i=1;i<5;i++)scanf(",%d",&card[i]);
        sort(card,card+5);
        if(card[0]+1==card[1]&&card[1]+1==card[2]&&card[2]+1==card[3]&&card[3]+1==card[4])printf("straight\n");
        else if(card[0]+12==card[4]&&card[1]+1==card[2]&&card[2]+1==card[3]&&card[3]+1==card[4])printf("straight\n");
        else if(card[0]==card[1])
        {
            if(card[1]==card[2])
            {
                if(card[2]==card[3])printf("four card\n");
                else if(card[3]==card[4])printf("full house\n");
                else printf("three card\n");
            }
            else if(card[2]==card[3])
            {
                if(card[3]==card[4])printf("full house\n");
                else printf("two pair\n");
            }
            else if(card[3]==card[4])printf("two pair\n");
            else printf("one pair\n");
        }
        else if(card[1]==card[2])
        {
            if(card[2]==card[3])
            {
                if(card[3]==card[4])printf("four card\n");
                else printf("three card\n");
            }
            else if(card[3]==card[4])printf("two card\n");
            else printf("one pair\n");
        }
        else if(card[2]==card[3])
        {
            if(card[3]==card[4])printf("three card\n");
            else printf("one pair\n");
        }
        else if(card[3]==card[4])printf("one pair\n");
        else printf("null\n");
    }
    return 0;
}