import java.util.Scanner; class N098{ public static void main(String args[]){ Scanner s = new Scanner(System.in); int x = s.nextInt(); int y = s.nextInt(); double a = Math.pow(x, 2) + Math.pow(y, 2); for(int i = 0; true; i++){ if(Math.pow(i / 2d, 2) > a){ System.out.println(i); break; } } } }