#include #include using namespace std; int a, b; int main() { cin >> a >> b; if (a < b) swap(a, b); if (a > b + 1) a = b + 1; cout << a + b - 1 << endl; return 0; }