using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AOJ
{
    class Program
    {
        static void Main(string[] args)
        {
            string s;
            while ((s = Console.ReadLine()) != null)
            {
                var list = s.Split(',').Select(int.Parse).ToList();
                list.Sort();
                var dict = new Dictionary<int, int>();
                foreach (var v in list)
                {
                    if (dict.ContainsKey(v))
                    {
                        var i = dict[v] + 1;
                        dict.Remove(v); dict.Add(v, i);
                    }
                    else
                    {
                        dict.Add(v, 1);
                    }
                }
                bool isStraight = true;
                for (int i = list[0]; i < list[0] + 5; i++)
                {
                    if (list[i - list[0]] != i) { isStraight = false; break; }
                }
                if (list[0] == 1)
                {
                    isStraight = true;
                    for (int i = 0; i < 4; i++)
                    {
                        if (list[i+1] != 10+i) { isStraight = false; break; }
                    }
                }

                bool isFour = false;
                bool isThree = false;
                int Pairs = 0;

                var lk = dict.Keys;
                foreach (var v in lk)
                {
                    isFour |= dict[v] == 4;
                    isThree |= dict[v] == 3;
                    Pairs += dict[v] == 2 ? 1 : 0;
                }

                string result = "null";

                if (isFour) result = "four card";
                else if (isThree && Pairs > 0) result = "full house";
                else if (isStraight) result = "straight";
                else if (isThree) result = "three card";
                else if (Pairs == 2) result = "two pairs";
                else if (Pairs > 0) result = "one pair";

                Console.WriteLine(result);
            }
        }
    }
}