#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c;
  cin >> a >> b >> c;
  if (a == b) {
    printf("%lld\n", (a * 2) + (c * 2));
  } else if (a < b) {
    printf("%lld\n", (a * 2) + (c * 2) + 1);
  } else {
    printf("%lld\n", (b * 2) + (c * 2) + 1);
  }
  return 0;
}
