import java.io.*; import java.util.*; class Main { public static void out (Object o) { System.out.println(o); } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] line = br.readLine().split(" "); int x = Math.abs(Integer.parseInt(line[0])); int y = Math.abs(Integer.parseInt(line[1])); int r = Integer.parseInt(line[2]); double d = x + y + Math.sqrt(2) * r; out((int)Math.ceil(d)); } }