#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c, s = 0, p;
  cin >> a >> b >> c;
  p = abs(a - b);
  p = max(a, b) - p;
  s = s + c * 2;
  a = a - p;
  b = b - p;
  s += 2 * p;
  if (a) s++;
  if (b) s++;
  cout << s << endl;
  return 0;
}
