#! ruby # yukicoder My Practice # author: Leonardone @ NEETSDKASU x, y, r = gets.split.map(&:to_f) len = x.abs + y.abs + 2 * (r ** 0.5) if len.floor == len.ceil puts len.ceil.succ else puts len.ceil end