A, B, K = gets.chomp.split.map(&:to_i)

if K <= A
  A = A - K
  K = 0
end

if A <= K
  K = K - A
  A = 0
end

if K <= B
  B = B - K
  K = 0
end

if B <= K
  K = K - B
  B = 0
end

K.times do |i|
  if 1 <= A
    A -= 1
  elsif 1 <= B
    B -= 1
  else A == 0 && B == 0
    break
  end
end

puts ("#{A} #{B}")