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

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