#include int main() { int A, B; std::cin >> A >> B; std::cout << (A == B ? A * 2 - 1 : std::min(A, B) * 2) << "\n"; }