ary1 = gets.chomp.split(" ").map(&:to_i)
a = ary1[0]
b = ary1[1]
k = ary1[2]
result = []
if a-k >=0
  result = [a-k,0]
elsif (a+b)-k>=0
  result = [0,b-(k-a)]
else
  result = [0,0]
end
puts "#{result[0]} #{result[1]}"