a, b, k = gets.chomp.split.map(&:to_i)

ans_a, ans_b = 0, 0
if k >= a
  ans_a = 0
  if b >= k - a
    ans_b = b - (k - a)
  else
    ans_b = 0
  end
else
  ans_a = a - k
  ans_b = b
end

print "#{ans_a} #{ans_b}\n"