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