import std.stdio;
import std.conv;
import std.array;

void main()
{
    auto reader = readln.split;
    int A = reader[0].to!int;
    int B = reader[1].to!int;

    if (A == B){
        writeln(A * 2);
    } else {
        int max = A;
        if (B > A) max = B;

        writeln(max + (max - 1));
    }
}

