read a b

if [ $a -lt 0 ] || [ $a -gt 10 ]; then
  echo "No"
  exit
fi

if [ $b -lt 0 ] || [ $b -gt 10 ]; then
  echo "No"
  exit
fi

counter=1
while [ $counter -le $b ]
do
  aa=`echo $aa$a`
  ((counter++))
done

counter=1
while [ $counter -le $a ]
do
  bb=`echo $bb$b`
  ((counter++))
done

if [ $aa = $bb ]; then
  echo $aa
  exit
fi

if [ $aa -gt $bb ]; then
  echo $bb
  exit
else
 echo $aa
 exit
fi