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