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