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