import std.algorithm;
import std.conv;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main ()
{
	int a, b;
	while (readf (" %s %s", &a, &b) > 0)
	{
		int res = 0;
		foreach (c; 0..2)
		{
			if (a > b)
			{
				res += a;
				a -= 1;
			}
			else
			{
				res += b;
				b -= 1;
			}
		}
		writeln (res);
	}
}
