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