object Main {
  def main(args: Array[String]): Unit = {
    val factors = io.StdIn.readLine.split(" ").map{_.toInt}
    var str     = 0
    var count   = 0

    if( factors( 0 ) < factors( 1 ) ) {
      str   = factors( 0 )
      count = factors( 1 )
    }
    else {
      str   = factors( 1 )
      count = factors( 0 )
    }

    println( str.toString*count )
  }
}