#include <bits/stdc++.h>
using namespace std;
string s;
int Na = 0;
int a, b, c;
long long kq = 0;
int main() {
  cin >> a >> b >> c;
  kq = c * 2;
  int mn = min(a, b);
  kq += 1ll * 2 * mn;
  a -= mn;
  b -= mn;
  if (a > 0 || b > 0) kq++;
  cout << kq;
}
