import java.util.Scanner; public class Yukicoder98 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double x = sc.nextDouble(), y = sc.nextDouble(); int res; for (res = 1; res <= 30000; res++) { if (x * x + y * y < (res/2.0) * (res/2.0)) break; } System.out.println(res); } }