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