using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] xy = Console.ReadLine().Split(); double x = Math.Abs(double.Parse(xy[0])); double y = Math.Abs(double.Parse(xy[1])); double z = Math.Sqrt(Math.Pow(x, 2) + Math.Pow(y, 2)); Console.WriteLine(Math.Floor(z + z + 1)); Console.ReadLine(); } }