#include using namespace std; #define sorted(a) sort(a.begin(), a.end()); typedef long long ll; const long mod = 1e9 + 7; int main(void) { #ifdef DEBUG freopen("input.txt", "r", stdin); #endif ios_base::sync_with_stdio(false); cin.tie(NULL); int X, Y, X2, Y2; cin >> X >> Y; cin >> X2 >> Y2; cout << max(X, Y); return 0; }