Module _20190422

    Sub Main()

        Dim sRead As String = Console.ReadLine()

        Dim iInt1 As Integer = sRead.Split(" ")(0)
        Dim iInt2 As Integer = sRead.Split(" ")(1)

        If iInt2 Mod iInt1 = 0 Then

            Console.WriteLine(iInt1 + iInt2)

        Else

            Console.WriteLine(iInt2 - iInt1)

        End If

    End Sub

End Module