fun main(args: Array<String>) {
  val (a,b) = readLine()!!.split(" ").map(String::toInt)
  if (a > b) {
    pri(b,a)
  } else {
    pri(a,b)
  }
}
  
fun pri(a: Int, n: Int) {
  for (i in 1..n) {
      print(a) 
    }
    println()
}