program main

  implicit none
  integer(8) :: a, b, k
  integer(8) :: i, j

  read(*,*) a,b,k
!
  if ( a >= k ) then
    a = a - k
    b = b
  else
    b = b - ( k - a )
    a = 0
  end if

  print*, a, b

end program main