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