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