#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 100;
const double PI = 3.14159;
long long n, m, k, a[4], c, t, ans;
string s;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cin >> n >> m >> k;
  ans = k * 2;
  if (n == m) {
    ans += n * 2;
    cout << ans << endl;
    return 0;
  }
  if (n > m) {
    ans += m + (m + 1);
  } else {
    ans++;
    m--;
    ans += n * 2;
  }
  cout << ans << endl;
}
