using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Yukicoder { class Program { static void Main(string[] args) { var line = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var x = line[0]; var y = line[1]; for (int i = 0; i < 200000000; i++) { if (i > Math.Sqrt(x*x + y*y)*2) { Console.WriteLine(i); return; } } } } }