def get_suffix(n):
    """  Add the appropriate suffix (th/st/rd) to any number given  """
    def ordinal(n): return "%d%s" % (
        n, "tsnrhtdd"[(n/10 % 10 != 1)*(n % 10 < 4)*n % 10::4])
    return ordinal(n)