using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { string[] A = Console.ReadLine().Split(); int x = int.Parse(A[0]); x = Math.Abs(x); int y = int.Parse(A[1]); y = Math.Abs(y); int ans = 0; double r = Math.Sqrt(x*x + y*y); double D = r * 2; D = Math.Ceiling(D); if(r*2 == D) { D += 1; } ans = (int)D; Console.WriteLine(ans); } } }