#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5, inf = 2e9, mod = 1e9 + 7;
vector<int> prime_Numbers;
bool primes[1000005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int a, b, c;
  cin >> a >> b >> c;
  long long ans = min(a, b) * 2;
  ans += c * 2;
  if (a != b) ans++;
  cout << ans;
  return 0;
}
