#include #define ALL(obj) begin(obj), end(obj) #define debug(x) cerr << #x << ": " << x << '\n' using namespace std; template vector make_vec(size_t a) { return vector(a); } template auto make_vec(size_t a, Ts... ts) { return vector(ts...))>(a, make_vec(ts...)); } template bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; } using ll = long long; using ull = unsigned long long; const int INF = 1e9; // const int MOD = 1e9 + 7; int main() { int A, B; cin >> A >> B; if (A == B) { cout << 2 * A - 1 << endl; } else { cout << 2 * min(A, B) << endl; } }