import std.stdio, std.math, std.algorithm, std.array, std.string, std.conv, std.container, std.range;
T Read(T)() { return readln.chomp.to!(T); }
T[] Reads(T)() { return readln.split.to!(T[]); }
alias read = Read!(int);
alias reads = Reads!(int);

void main() {
    int a, b;
    readf("%d %d\n",&a, &b);
    if (a < b) swap(a, b);
    writeln(a + max(a-1, b));
}
