a, b , k = gets.chomp.split(" ").map(&:to_i)
kizyun = a + b 
if a >= k
    aa = a - k
    bb = b
elsif kizyun >= k && k >= a
    aa = 0
    bb = a + b - k
else
    aa = 0
    bb = 0
end
print aa
print " "
print bb
print "\n"