cookie_A, cookie_B, times = gets.split(' ').map(&:to_i)
 
if times > cookie_A
  cookie_A = 0
  times -= cookie_A
  if times > cookie_B
    print "0 0"
    exit
  else
    cookie_B -= times
    print "0 ", cookie_B
  end
else
  cookie_A -= times
  print cookie_A, " ", cookie_B
end