def check_if_pack_on_hand(hand):
    """
    Function used to check if player have a pack of cards on hand.
    :param hand: list of cards on player hand
    :return: list of cards values which can be played as pack
    """
    tmp = {}
    for card in hand:
        if card[1] in tmp.keys():
            tmp[card[1]] += 1
        else:
            tmp[card[1]] = 1

    keys = tmp.keys()
    packs = []
    for key in keys:
        if tmp[key] >= 3:
            packs.append(key)

    return packs