#include using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); int x,y; cin>>x>>y; cout<<(int)(sqrt(x*x+y*y)*2)+1<<"\n"s; }