#include using namespace std; #ifdef LOCAL #include "debug.h" #else #define DEBUG(...) #endif int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int d1, d2; cin >> d1 >> d2; if (d2 < d1 or d2 > 2 * d1) { cout << "0\n"; } else if (d1 < d2 and d2 < 2 * d1) { cout << "8\n"; } else { cout << "4\n"; } }