def parse_years(years):
    """Parse input string into list of years

    Args:
        years (str): years formatted as XXXX-YYYY

    Returns:
        list: list of ints depicting the years
    """    
    # Split user input into the years specified, convert to ints
    years_split = list(map(int, years.split('-')))
    # if only 1 year then that is list
    if len(years_split) == 1:
        year_range = years_split
    else:
        # Make a complete list of years from first year specified to last.
        year_range = [str(x) for x in range(min(years_split), max(years_split) + 1)]

    return year_range