# -*- coding: utf-8 -*-


def is_four_card(d):
    return 4 in d.values()


def is_full_house(d):
    return 3 in d.values() and 2 in d.values()


def is_straight(d):
    flag = [False, 0]
    for i in d.values():
        if flag[0] == True and flag[1] == 5:
            return True

        if i == 1:
            flag[0] = True
            flag[1] += 1
    return False


def is_three_card(d):
    return 3 in d.values()


def is_two_pair(d):
    return list(d.values()).count(2) == 2


def is_one_pair(d):
    return list(d.values()).count(2) == 1


def judge(d):
    if is_four_card(d):
        print('four card')
    elif is_full_house(d):
        print('full house')
    elif is_straight(d):
        print('straight')
    elif is_three_card(d):
        print('three card')
    elif is_two_pair(d):
        print('two pair')
    elif is_one_pair(d):
        print('one pair')
    else:
        print('null')


def solve(cards):
    d = {k: 0 for k in range(1, 14)}
    for card in cards:
        d[card] += 1
    judge(d)

_input = input().split(",")
solve(_input)