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


a_count = 0
b_count = 0

k.times do
  if a >= 1
    a = a - 1
    a_count += 1
  elsif b >= 1
    b = b- 1
    b_count += 1
  elsif a = 0 && b = 0
  end
end

puts "#{a} #{b}"