#include <bits/stdc++.h>
using namespace std;
long long x, y, z;
template <typename T>
inline T read() {
  T x = 0;
  T multiplier = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') {
      multiplier = -1;
    }
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 3) + (x << 1) + (ch & 15);
    ch = getchar();
  }
  return x * multiplier;
}
int main() {
  x = read<long long>(), y = read<long long>(), z = read<long long>();
  x += z, y += z;
  if (x == y) {
    cout << x + y << '\n';
  } else if (x < y) {
    cout << x * 2 + 1 << '\n';
  } else if (x > y) {
    cout << y * 2 + 1 << '\n';
  }
  return 0;
}
