#include <bits/stdc++.h>
long long a, b, c, x;
signed main() {
  scanf("%lld %lld %lld", &a, &b, &c);
  if (a == b)
    printf("%lld", a + b + c * 2);
  else {
    x = a;
    if (x > b) x = b;
    printf("%lld", x * 2 + 1 + c * 2);
  }
}
