def METHOD_NAME(name):
    """
    Args:
        name (str, int):
    Returns:
        int
    """
    if isinstance(name, int):
        return name
    else:
        if name.isdigit():
            return int(name)
        elif name in ['a', 'c', 'sp', 'ex_sp', 'ts', 't', 'ht', 'hts']:
            return 1
        elif name in ['b', 'd', 'ex_ex']:
            return 2
        else:
            raise CampaignNameError