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 == 0 && b == 0) Console.WriteLine(0); else Console.WriteLine(2L * Max(a, b) - 1); } }