using System; namespace DrawCircle { class Program { static void Main(string[] args) { string[] param = Console.ReadLine().Split(' '); int Px = int.Parse(param[0]); int Py = int.Parse(param[1]); double r = Math.Truncate( Math.Sqrt( Math.Pow(Px, 2) + Math.Pow( Py , 2) ) ); Console.WriteLine( r * 2 + 1 ); } } }