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