import scala.collection.mutable.ArrayBuffer

object Main extends App {
	val sc = new java.util.Scanner(System.in)
	val pw = new java.io.PrintWriter(System.out)
	
	val a, b = sc.nextInt
	
	pw.println( if (a < b) a.toString * b else a.toString * b )
	pw.flush()
}