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', 'as', 'cs', 'sp']:
            return 1
        elif name in ['b', 'd', 'bs', 'ds', 'ex_ex', 'ex_sp']:  # Difference
            return 2
        else:
            raise CampaignNameError