#include <bits/stdc++.h>
using namespace std;
long long int const inf = (long long int)1e9;
int32_t main() {
  long long int a, b, c;
  cin >> a >> b >> c;
  long long int d;
  if (a > b) {
    d = (2 * b) + (c * 2) + 1;
  } else if (b > a) {
    d = (2 * a) + 1 + (c * 2);
  } else {
    d = 2 * (a + c);
  }
  cout << d << endl;
}
