# frozen_string_literal: true x, y, r = gets.chomp.split.map(&:to_i) d = x.abs + y.abs + Math.sqrt(2) * r puts d.ceil