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