import java.util.Scanner

fun main(args: Array<String>) {
	val scn = Scanner(System.`in`)
	val a = scn.nextInt()
	val b = scn.nextInt()
	println(if (a<b) IntArray(b){a}.joinToString(separator = "") else IntArray(a){b}.joinToString(separator = ""))
}