#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int l1, b1, l2, b2;
  cin >> l1 >> b1 >> l2 >> b2;
  cout << 2 * (l1 + b1 + b2) + 4;
  return 0;
}
