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