#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long a, b, c;
  cin >> a >> b >> c;
  long long t = min(a, b);
  a -= t;
  b -= t;
  cout << t * 2 + c * 2 + (bool(a || b)) << endl;
  return 0;
}
