def normalize_ordinal(ordinal):
    """
    Given a string like "first" or "1st" or "1", return the canonical version ('1').
    """
    return ordinal[0] if ordinal[0].isdigit() else str('ieho'.index(ordinal[1].lower()) + 1)