def eat(taka, ao, k)
  result = [taka, ao]
  for i in 0..k-1
    if result[0] >= 1
      result[0] = result.first-1
    elsif result[1] >= 1
      result[1] = result.last-1
    end
  end
  return result
end

a, b, k = gets.chop.split.map(&:to_i)
print eat(a, b, k).join('')