import java.util.*; public class Circle{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); double x,y,r; int res; x = Math.abs(sc.nextDouble()); y = Math.abs(sc.nextDouble()); r = Math.sqrt(Math.pow(x,2) + Math.pow(y,2)); res = (int)(r*2) + 1; System.out.println(res); } }