def FromJulian(julian):
    """Convert a julian date

    :param int `julian`: the julian date to convert

    :returns: year, month day as integers

    """
    if (julian < 2299160):
        b = julian + 1525
    else:
        alpha = (4 * julian - 7468861) / 146097
        b = julian + 1526 + alpha - alpha / 4
    c = (20 * b - 2442) / 7305
    d = 1461 * c / 4
    e = 10000 * (b - d) / 306001
    day = int(b - d - 306001 * e / 10000)
    if e < 14:
        month = int(e - 1)
    else:
        month = int(e - 13)
    if month > 2:
        year = c - 4716
    else:
        year = c - 4715
    year = int(year)
    return year, month, day