!--Greedy Takahashi
program cookie
  implicit none

  integer(8) :: i, j
  integer(8) :: A, B, K, AA, BB

read *, A, B, K

if (A >= K) then
  print *, A-K, B
  stop
else if (A < K) then
  AA = 0
  BB = B-(K-A)
  if (BB >= 0) then
    BB = BB
  else
    BB = 0
  end if

  print *, AA, BB
endif

end program cookie

