Public Class Main
    Public Shared Sub Main(ByVal args() As String)
        Dim a, b As Char
        Dim arr(2) As String
        arr = Split(Console.ReadLine())
        a = arr(0) : b = arr(1)
        Dim x As New String(a, Integer.Parse(b))
        Dim y As New String(b, Integer.Parse(a))
        Console.WriteLine(if(Integer.Parse(a) < Integer.Parse(b), x, y))
    End Sub
End Class
