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