#include using namespace std; int main(){ int A,B; cin >> A >> B; if(A == B) cout << A+B-1 << endl; else cout << 2*min(A,B) << endl; }