#include using namespace std; int main() { int a,b,c,d; cin >> a; cin >> b; cin >> c; cin >> d; if(a == c && b == d) { cout << "=" << endl; return 0; } else if(a<=d) { if(b>=c) { if(a<=c && b>=d) { cout << 2 << endl; return 0; } else if(a>=c && b<=d) { cout << 1 << endl; return 0; } } } cout << "?" << endl; return 0; }