#include <bits/stdc++.h>
using namespace std;
int main() {
  string k;
  long long a, b, c, d, e, f, g = 0, h, i, j, l, m, n, o, p, q = 0, r, s, t, u,
                              v, w, x, y, z;
  cin >> a >> b >> c;
  if (a == b) {
    cout << (2 * c) + a + b;
  } else {
    cout << (2 * c) + (2 * min(a, b)) + 1;
  }
}
