function [ y, m ] = month_borrow_julian ( y, m )

%*****************************************************************************80
%
%% month_borrow_julian() borrows a year of months on the Julian calendar.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 June 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer Y, M, the year and month.
%
%  Output:
%
%    integer Y, M, the year and month after borrowing.
%
  while ( m <= 0 )

    months = year_length_months_julian ( y );

    m = m + months;
    y = y - 1;

    if ( y == 0 )
      y = - 1
    end

  end

  return
end
