'use strict';
function main(input) {
  const arr = input.trim().split(' ');
  const a = arr[0];
  const b = arr[1];
  let str = '';

  for (let i = 0; i < Math.max(a, b).length; i ++) {
    str += Math.min(a, b);
  }

  console.log(str);
}

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