n,a;main(b){scanf("%d%d",&a,&b);for(a=a*a+b*b;4*a<++n*n;);a=!printf("%d",n);}