import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); for(int i=1;;i++){ if(i*1.0/2>Math.sqrt(x*x*1.0+y*y*1.0)){ System.out.println(i); return; } } } }