#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, ab;
  scanf("%lld%lld%lld", &a, &b, &ab);
  long long q1 = 0;
  if (a + b) q1 = 1;
  long long qab = 2 * ab + 2 * min(a, b);
  if (a > b) qab++;
  long long qba = 0;
  if (b) {
    b--;
    qba = 1 + 2 * ab;
    qba += 2 * min(a, b);
    if (a > b) qba++;
  }
  printf("%lld\n", max(q1, max(qab, qba)));
}
