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