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