#include #include int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d",(int)(sqrt(a*a+b*b+0.0)*2+0.999)); return 0; }