program greedy_takahashi
  implicit none
  integer(8) :: a, b, k
  read(*,*) a, b, k
  if (a < k) then
    write(*,'(i0,x,i0)') 0, max(a+b-k,0_8)
  else
    write(*,'(i0,x,i0)') a-k, b
  end if
end program greedy_takahashi