#include <bits/stdc++.h>
int main() {
  std::ios_base::sync_with_stdio(false);
  size_t a, b, c;
  std::cin >> a >> b >> c;
  if (a > b) std::swap(a, b);
  auto r = 2 * c + 2 * a + (b - a > 0);
  std::cout << r;
}
