#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c;
  scanf("%lld %lld %lld", &a, &b, &c);
  long long ans = c + c;
  long long mn = min(a, b);
  ans += mn + mn;
  a -= mn;
  b -= mn;
  if (a + b) {
    ans++;
  }
  printf("%lld\n", ans);
  return 0;
}
