#include using namespace std; int main() { int a, b; cin >> a >> b; int m = min(a, b); cout << ((a == b) ? (m * 2 - 1) : (m * 2)) << endl; return 0; }