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