#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
const long long SIZE = 3e5 + 5;
const long long mod = 1e9 + 7;
int main() {
  long long t = 0, n, x, y, z, i, j, k, g, p, q, ans = 0, sum = 0, c = 0;
  string s, s1, s2;
  cin >> x >> y >> z;
  if (x == y) {
    t = x * 2LL;
  } else {
    c = min(x, y);
    c *= 2LL;
    t = c + 1LL;
  }
  ans = t + (2LL * z);
  printf("%lld\n", ans);
  return 0;
}
