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