import math


def convert_to_year_month(CENTURY_date):
    """Convert CENTURY's representation of dates (from output file) to year
    and month.  Returns a list containing integer year and integer month."""

    if CENTURY_date - math.floor(CENTURY_date) == 0:
        year = int(CENTURY_date - 1)
        month = 12
    else:
        year = int(math.floor(CENTURY_date))
        month = int(round(12. * (CENTURY_date - year)))
    return [year, month]