#include <bits/stdc++.h>
using namespace std;
const double pi = 3.14159265358979323;
int main() {
  long long int a, b, c;
  cin >> a >> b >> c;
  cout << 2 * c + 2 * min(a, b) + min(1, (int)abs(a - b));
}
