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