package 練習; import java.util.Date; import java.util.Scanner; public class main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); long exec_time=new Date().getTime(); int x=sc.nextInt(),y=sc.nextInt(); double l=2*Math.sqrt((double)(x*x+y*y)); System.out.println((int)l+1); System.err.println(new Date().getTime()-exec_time+"ms"); } }