import std.stdio, std.string, std.range, std.conv, std.array, std.algorithm, std.math, std.typecons;

void main() {
    auto xs = readln.split.to!(int[]);
    if (xs[0] != xs[1]) writeln(xs.reduce!max * 2 - 1);
    else writeln(xs[0] * 2);
}

