def get_int
  gets.chop.to_i
end

def get_ints
  gets.chop.split.map(&:to_i)
end

def get_double
  gets.chop.to_f
end

def get_str
  gets.chop
end

def get_strs
  gets.chop.split
end

def main
  a, b, k = get_ints
  s1 = a - k
  if s1 < 0
    s1 = 0
    s2 = b - (k - a)
    if s2 < 0
      s2 = 0
    end
  else
    s2 = b
  end
  puts "#{s1} #{s2}"
end

if __FILE__ == $0
  main
end

