a, b, k = gets.strip.split.map(&:to_i)
c = k - a
if a == 0 && b == 0
  puts "#{a} #{b}"
else
  if c > 0
    d = b - c
    if d > 0
      puts "0 #{d}"
    else
      puts "0 #{c - b}"
    end
  else
    puts "#{a - k} #{b}"
  end
end


