using static System.Math; using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = int.Parse(line[0]); var b = int.Parse(line[1]); Console.WriteLine(a == b ? 2 * a - 1 : Min(a, b) * 2); } }