#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  unsigned long long int a, b, c;
  cin >> a >> b >> c;
  unsigned long long int sol = c * 2;
  if (a == b)
    sol += a * 2;
  else
    sol += min(a, b) * 2 + 1;
  cout << sol;
}
