#include "bits/stdc++.h" using namespace std; typedef long long ll; ll x, y; int main() { cin >> x >> y; int x2,y2; cin >> x2 >> y2; cout << max(x,y) << endl; }