#include using namespace std; #define all(v) (v).begin(),(v).end() #define pb(a) push_back(a) #define rep(i, n) for(int i=0;i> a >> b >> o >> w; cout << max(a + o + w, b + o + w) << endl; return 0; }