line = gets.split(' ').map(&:to_i)

A = line[0]
B = line[1]
K = line[2]

if K < A then
  tak = A - K
  aok = B
elsif K < A + B then
  tak = 0
  aok = B - (K - A)
else
  tak = 0
  aok = 0
end
  
print tak.to_s + " " + aok.to_s