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