#include int main(int, char **) { int a, b; std::cin >> a >> b; if (a == b) { std::cout << (a + b - 1) << std::endl; return 0; } std::cout << (std::min(a, b) * 2) << std::endl; return 0; }