# https://atcoder.jp/contests/abc152/tasks/abc152_b

read row ; row=($row) ; a=$((row[0])) ; b=$((row[1]))
ans=""
if [ $a -lt $b ] ; then
  # aをb回繰り返す
  for ((i = 0; i < b; i++)) ; do
    ans="${ans}$a"
  done
else
  # bをa回繰り返す
  for ((i = 0; i < a; i++)) ; do
    ans="${ans}$b"
  done
fi
echo $ans
