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