using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; class lecture { public static void Main(string[] args) { string[] A = Console.ReadLine().Split(); int x = int.Parse(A[0]); int y = int.Parse(A[1]); int c = (x * x) + (y * y); int kyori = (int)(Math.Sqrt(c) * 2 +1); Console.WriteLine(kyori); } }