#include #include using namespace std; int main(){ int d1,d2; cin >> d1 >> d2; if(d1>d2) cout << 0 << endl; else if(d1==d2) cout << 4 << endl; else if(d1>d2/sqrt(2)) cout << 8 << endl; else if(d1==d2/sqrt(2)) cout << 4 << endl; else cout << 0 << endl; }