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