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

if a >= k
  a = a - k
  k = 0
end

if a <= k
  k = k - a
  a = 0
end

if b >= k
  b = b - k
  k = 0
end

if b <= k
  b = 0
  k = b - a
end

k.times do |i|
  if a >= 1
    a -= 1
  elsif b >= 1
    b -= 1
  elsif a == 0 && b == 0
    break
  end
end

print("#{a} #{b}")