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