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