#include using namespace std; using ld=long double; signed main(){ ld a, b; cin >> a >> b; if (a < b / 2) { cout << 0 << endl; } else if (a == b / 2) cout << 4 << endl; else cout << 8 << endl; }