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