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