import java.util.Scanner; class No_98 { public static void main(String args[]) { Scanner stdIn = new Scanner(System.in); int xaxis = stdIn.nextInt(); int yaxis = stdIn.nextInt(); double len = Math.pow(xaxis, 2) + Math.pow(yaxis, 2); len = Math.sqrt(len); for (int i = 0; ; i++) { if (len * 2 < i) { System.out.println(i); break; } } } }