#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c;
  cin >> a >> b >> c;
  long long sum = 2 * c;
  sum += 2 * min(a, b);
  if (a > b || b > a) sum++;
  cout << sum;
  return 0;
}
