#include using namespace std; int main(){ int x,y;cin>>x>>y; double r=pow(x*x+y*y,0.5); cout<<(int)r*2+1<