# https://atcoder.jp/contests/abc149/tasks/abc149_b


A, B, K = gets.split.map(&:to_i)

a, b = (
  if K >= A + B
    [0, 0]
  elsif K >= A
    [0, B + A - K]
  else
    [A - K, B]
  end
)
puts "#{a} #{b}"
