#include <bits/stdc++.h>
using namespace std;
int calcVal(int w1, int h1, int w2, int h2) {
  int val1 = h2;
  int val2 = w1 - w2;
  return val1 + val2;
}
int main() {
  int w1, h1, w2, h2;
  cin >> w1 >> h1 >> w2 >> h2;
  int leftVertical = (h1 + h2);
  int bottomHorizontal = (w1 + 2);
  int rightVertical = (h1) + calcVal(w1, h1, w2, h2);
  int topHorizontal = (w2 + 2);
  cout << leftVertical + bottomHorizontal + rightVertical + topHorizontal
       << endl;
  return 0;
}
