fun main(args: Array<String>) {
    val ab = readLine()!!.split(" ").map { it.toInt() }
    
    var result = ""
    
    val small = if (ab[0] < ab[1]) ab[0] else ab[1]
    val big = if (ab[0] < ab[1]) ab[1] else ab[0]
    
    for (i in 1..big) {
        result += small.toString()
    }
    
    print(result)
}