#include int main(){ int Xp, Yp, i; scanf("%d%d", &Xp, &Yp); for(i=0; i*i <= Xp*Xp*4+Yp*Yp*4; i++); printf("%d",i); return 0; }