import java.util.Scanner

object Main extends App{
  val sc = new Scanner(System.in)
  
  val a = sc.nextInt
  val b = sc.nextInt
  
  val target = Math.min(a,b)
  val times = Math.max(a,b)
  
  val res = Seq.fill(times)(target).mkString("")
  
  println(res)
  
}