def cent_from_year(year):
    """ takes an integer and returns the matching century """
    if year == 0:
        return 1
    elif year < 0:
        return -(year - 1) // -100
    else:
        return (year - 1) // 100 + 1