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