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