#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c;
  cin >> a >> b >> c;
  if (a == b) {
    cout << (a + b + (2 * c));
  } else if (a > b) {
    while (a != b) {
      a--;
    }
    cout << (a + b + (2 * c) + 1);
  } else {
    while (a != b) {
      b--;
    }
    cout << (a + b + (2 * c) + 1);
  }
  return 0;
}
