#include <bits/stdc++.h>
using namespace std;
using Int = long long;
template <typename T1, typename T2>
inline void chmin(T1 &a, T2 b) {
  if (a > b) a = b;
}
template <typename T1, typename T2>
inline void chmax(T1 &a, T2 b) {
  if (a < b) a = b;
}
struct FastIO {
  FastIO() {
    cin.tie(0);
    ios::sync_with_stdio(0);
  }
} fastio_beet;
signed main() {
  Int a, b, c;
  cin >> a >> b >> c;
  if (a == b)
    cout << a + b + c * 2 << endl;
  else
    cout << min(a, b) * 2 + 1 + c * 2 << endl;
  return 0;
}
