#include <bits/stdc++.h>
int main() {
  long long int a, b, ab, sum;
  scanf("%lld %lld %lld", &a, &b, &ab);
  sum = ab * 2;
  if ((a - b) > 1 || (b - a) > 1) {
    if (a > b)
      sum += b * 2 + 1;
    else
      sum += a * 2 + 1;
  } else
    sum += a + b;
  printf("%lld", sum);
}
