def find_rank_type(ranks):
    """Find and return the rank type of the 3 ranks given

    Rank type results:
        1: no particularly interesting rank order, i.e. High Card
        2: pair rank
        4: straight
        5: three of a kind
    """
    ranks.sort()
    if ranks[0] == ranks[1] == ranks[2]:
        return 5
    elif ranks[1] == ranks[2] or ranks[0] == ranks[1] or ranks[0] == ranks[2]:
        return 2
    elif (ranks[0] + 1) == ranks[1] and (ranks[1] + 1) == ranks[2]:
        return 4
    elif 14 in ranks and 2 in ranks and 3 in ranks:
        return 4
    else:
        return 1