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