#include using namespace std; int main() { int x, y; while (cin>>x>>y) { for(int r=1;;++r) if (r*r>4*(x*x+y*y)) { cout<