/** * @FileName a.cpp * @Author kanpurin * @Created 2020.05.22 21:22:57 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { int a, b; cin >> a >> b; int cnt = 0; if (a != b) { cout << min(a, b) * 2 << endl; } else { cout << a * 2 - 1 << endl; } return 0; }