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

count.times do
	next if takahashi < 1 && aoki < 1 

	if takahashi >= 1
    	takahashi -= 1 
	elsif aoki >= 1
		aoki -= 1
	end
end

puts "#{takahashi} #{aoki}"
