#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long a, b, c;
  cin >> a >> b >> c;
  c *= 2;
  if (abs(a - b) <= 1) {
    c += a + b;
  } else {
    c += min(a, b) * 2 + 1;
  }
  cout << c << endl;
}
