#! ruby # yukicoder My Practice # author: Leonardone @ NEETSDKASU x, y, r = gets.split.map(&:to_i) len = x.abs + y.abs + r + 1 puts len