#include using namespace std; int main() { int A, B; cin >> A >> B; cout << A + B + max(abs(A - B) - 1, 0) << endl; }