// 素敵な日 #include #define rep(i, n) for(int i=0; i<(int)(n); ++i) using namespace std; using ll = long long; using ull = unsigned long long; int main(){ int A, B; cin >> A >> B; int ans; if(A == B) ans = A*2-1; else{ ans = min(A, B); ans *= 2; } cout << ans << endl; return 0; }