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