while True:

    try:

        hand = list(map(int, input().split(",")))

        kind = list(set(hand))

        rank =[]

        for card in kind:

            rank.append(hand.count(card))

            rank.sort()

            rank.reverse()

        if rank[0] == 4:

            print("four card")

        elif rank[0] == 3:

            if rank[1] == 2:

                print("full house")

            else:

                print("three card")

        elif rank[0] == 2:

            if rank[1] == 2:

                print("two pair")

            else:

                print("one pair")

        else:

            hand.sort()

            if hand[4] - hand[0] == 4 or (hand[0] == 1 and hand[1] == 10):

                print("straight")

            else:

                print("null")

    except:

        break
while True:

      try:

            hand = sorted(map(int, input().split(",")))

            kind = len(set(hand))

            ma = max([hand.count(i) for i in hand])

            if kind == 4:

                  print("one pair")

            elif kind == 3:

                  if ma == 2:

                        print("two pair")

                  else:

                        print("three card")

            elif kind == 2:

                  if ma==4:

                        print("four card")

                  else:

                        print("full house")

            else:

                  if hand==[1,10,11,12,13] or hand[4] - hand[0] == 4:

                        print("straight")

                  else:

                        print("null")

      except:

            break
while True:
    try:
        hand = list(map(int, input().split(",")))
        kind = list(set(hand))
        rank = []
        for card in kind:
            rank.append(hand.count(card))
            rank.sort()
            rank.reverse()
        if rank[0] == 4:
            print("four card")
        elif rank[0] == 3:
            if rank[1] == 2:
                print("full house")
            else:
                print("three card")
        elif rank[0] == 2:
            if rank[1] == 2:
                print("two pair")
            else:
                print("one pair")
        else:
            hand.sort()
            if hand[4] - hand[0] == 4 or (hand[0] == 1 and hand[1] == 10):
                print("straight")
            else:
                print("null")
    except:
        break

while True:
    try:
        hand = sorted(map(int, input().split(",")))
        kind = len(set(hand))
        ma = max([hand.count(i) for i in hand])
        if kind == 4:
            print("one pair")
        elif kind == 3:
            if ma == 2:
                print("two pair")
            else:
                print("three card")
        elif kind == 2:
            if ma == 4:
                print("four card")
            else:
                print("full house")
        else:
            if hand == [1, 10, 11, 12, 13] or hand[4] - hand[0] == 4:
                print("straight")
            else:
                print("null")
    except:
        break

-        hand = list(map(int, input().split(","))) -        kind = list(set(hand)) -        rank = [] -        for card in kind: -            rank.append(hand.count(card)) -            rank.sort() -            rank.reverse() -        if rank[0] == 4: -            print("four card") -        elif rank[0] == 3: -            if rank[1] == 2: -                print("full house") +        hand = sorted(map(int, input().split(","))) +        kind = len(set(hand)) +        ma = max([hand.count(i) for i in hand]) +        if kind == 4: +            print("one pair") +        elif kind == 3: +            if ma == 2: +                print("two pair") -        elif rank[0] == 2: -            if rank[1] == 2: -                print("two pair") +        elif kind == 2: +            if ma == 4: +                print("four card") -                print("one pair") +                print("full house") -            hand.sort() -            if hand[4] - hand[0] == 4 or (hand[0] == 1 and hand[1] == 10): +            if hand == [1, 10, 11, 12, 13] or hand[4] - hand[0] == 4: