#include using namespace std; int main() { int WC, HC, WS, HS; while (cin >> WC >> HC >> WS >> HS) { cout << (WS+2 <= WC && HS+2 <= HC) << endl; } }