takahashi, aoki, n = gets.split(" ").map(&:to_i)
if n >= takahashi
  if aoki - (n - takahashi) < 0
    puts "0 0"
  else
    puts "0 #{aoki - (n-takahashi)}"
  end
else
  puts "#{takahashi - n} #{aoki}"
end