function main(input) {
    var a = input[0].split(" ")[0]-0;
    var b = input[0].split(" ")[1]-0;
    var ans = "";
    if(a>b){
        for(var i=0;i<a;i++){
            ans += b.toString();
        }
    }else{
        for(var i=0;i<b;i++){
            ans += a.toString();
        }
    }
    console.log(ans);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))
