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