#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long int a, b, c, ans = 0;
  cin >> a >> b >> c;
  if (a != b) ans++;
  ans += 2 * (min(a, b) + c);
  cout << ans;
}
