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