"use strict";

function Main(input) {
  let x = input.trim().split(' ')[0];
  let y = input.trim().split(' ')[1];
  let ans = "";
  if(x > y){
  	ans = y.repeat(x);
  }else {
	ans = x.repeat(y);
  }
  console.log(ans);
}

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