#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, ab;
  scanf("%d %d %d", &a, &b, &ab);
  long long res = ab * 2;
  res += min(a, b);
  if (max(a, b) > min(a, b) + 1) {
    res += min(a, b) + 1;
  } else {
    res += max(a, b);
  }
  printf("%I64d\n", res);
}
