#include <bits/stdc++.h>
using namespace std;
long long a, b, c;
int main() {
  cin >> a >> b >> c;
  if (a == b)
    cout << (a * 2) + (c * 2);
  else if (a > b)
    cout << (b * 2) + (c * 2) + 1;
  else
    cout << (a * 2) + (c * 2) + 1;
  return 0;
}
