#include <bits/stdc++.h>
using namespace std;
const long long maxn = 3e5 + 7;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  if (fopen("test.inp", "r"))
    freopen("Test.inp", "r", stdin), freopen("test.out", "w", stdout);
  long long a, b, c;
  cin >> a >> b >> c;
  cout << c * 2 + min(b, a) * 2 + ((a + b) - min(a, b) * 2 > 0);
}
