import java.util.*;
class Ufo {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int x = Integer.parseInt(scan.next());
		int y = Integer.parseInt(scan.next());
		double shahen = Double.parseDouble(scan.next()) * Math.sqrt(2);
		System.out.println(Math.abs(x) + Math.abs(y) + (int)Math.ceil(shahen));
	}
}