takahashi,aoki,count = gets.split.map(&:to_i)

if takahashi <= count
  hoge = aoki - (count - takahashi)
  puts "0 #{hoge < 1 ? 0 : hoge}"
else
  remain = takahashi - count
  puts "#{remain} #{aoki <= remain ? 0 : aoki - remain}"
end
