def eat(taka, ao, k)
  if k <= taka
    return [taka-k, ao]
  elsif k <= taka+ao
    return [0, ao-(taka-k)]
  else
    return [0, 0]
  end
end

a, b, k = gets.chop.split.map(&:to_i)
print eat(a, b, k).join('')