let a = readLine()!.split(separator: " ").map{Int($0)!} print(a[0] == a[1] ? a.min()! * 2 - 1 : a.min()! * 2)