def stringify_rank(rank : int) -> str:
    """Converts the rank into a str. eg Rank 1 --> 1st"""
    if rank is None:
        return ">100th"

    output = str(rank)

    if output[-2:] in ("11", "12", "13"):
        output += "th"
    elif output[-1] == '1':
        output += "st"
    elif output[-1] == '2':
        output += "nd"
    elif output[-1] == '3':
        output += "rd"
    else:
        output += "th"

    return output