#include int main(int argc, char *argv[]) { int a, b; std::cin >> a >> b; int m = std::min(a, b); if (a == b) std::cout << 2 * m - 1 << std::endl; else std::cout << 2 * m << std::endl; }