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