function Main(input) {
  input = input.split(" ");
  var a = input[0];
  var b = input[1];
  var ans = "";
  for(var i=0;i<Math.max(a,b);i++){
    ans+=Math.min(a,b);
  }
  console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));