open System

#nowarn "25"

let readLine _ = Console.In.ReadLine()
let readInt<'a> = readLine >> int
let readLong<'a> = readLine >> int64
let readFloat<'a> = readLine >> float
let readArray _ = readLine().Split ' '
let readIntArray _ = readArray() |> Array.map (int)

[<EntryPoint>]
let main _ =
    let [|a; b|] = readIntArray()
    (if a < b
        then (Seq.replicate b (string a) |> String.Concat)
        else (Seq.replicate a (string b) |> String.Concat))
    |> printfn "%s"
    0 // return an integer exit code
