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

if a >= b
  if k > a
    puts "0 0"
  elsif k <= a && b < k
    puts "#{a-k} #{b}"
  else
    puts "#{a-k} #{b}"
  end
else
  if k > b
    puts "0 0"
  elsif k <= b && a < k
    puts "#{b-k} #{a}"
  else
    puts "#{b-k} #{a}"
  end
end
