def eat a, b
  if a > 0
    return [a-1, b]
  elsif b > 0
    return [a, b-1]
  else
    return [a, b]
  end
end

a, b, k = gets.chop.split

a = a.to_i
b = b.to_i

k.to_i.times do
  a, b = eat a, b
end

puts "#{a} #{b}"