'use strict';
function main(input) {
  const arr = input.trim().split(' ');
  const minimum = String(Math.min(arr[0], arr[1]));
  const maximum = Number(Math.max(arr[0], arr[1]));

  console.log(minimum.repeat(maximum));
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));