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