#include <bits/stdc++.h>
const long long mod = 1000000007;
using namespace std;
void yn(bool a) {
  if (a)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long a, b, c;
  cin >> a >> b >> c;
  if (a == b) {
    cout << a + b + 2 * c;
  } else {
    cout << 2 * min(a, b) + 1 + 2 * c;
  }
}
