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