#include <bits/stdc++.h>
using namespace std;
const long long int INF = 2e9;
const long long int mod = 1e9 + 7;
const long long int N = 3e4 + 5;
long long int i, j;
void solve() {
  long long int a, b, c;
  cin >> a >> b >> c;
  if (abs(a - b) >= 2) {
    a = min(a, b);
    cout << 2 * a + 2 * c + 1 << "\n";
  } else
    cout << a + b + 2 * c << "\n";
}
int32_t main() {
  long long int t = 1;
  while (t--) {
    solve();
  }
}
