#include int main(){ int x,y;std::cin>>x>>y; std::cout<<(int)(std::hypot(x,y)*2)+1<