Module _20190420

    Sub Main()

        '入力を受け取る
        Dim a As String = Console.ReadLine()


        '数値に分解
        Dim Int1 As Integer = CInt(a.Split(" ")(0))
        Dim Int2 As Integer = CInt(a.Split(" ")(1))

        If Int1 = Int2 Then

            '出力
            Console.WriteLine(Int1 + Int2)

        End If

        If Int1 > Int2 Then

            '出力
            Console.WriteLine(Int1 + Int1 - 1)

        End If

        If Int2 > Int1 Then

            '出力
            Console.WriteLine(Int2 + Int2 - 1)


        End If

    End Sub

End Module