Option Strict On
Module Module1

    Sub Main()
        Dim l() As String = Split(Console.ReadLine())
        Dim A As Integer = Convert.ToInt32(l(0))
        Dim B As Integer = Convert.ToInt32(l(1))
        If A = B Then
            Console.WriteLine(A + B)
        ElseIf A > B Then
            Console.WriteLine(A + A - 1)
        Else : Console.WriteLine(B + B - 1)
        End If
        Console.ReadLine()
    End Sub

End Module