using System; using System.Linq; namespace _172 { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); double a = Math.Abs(x[0]) + Math.Abs(x[1]); a += Math.Sqrt(2) * x[2]; Console.WriteLine(Math.Ceiling(a)); } } }