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