function main(arg) {
	arg = arg.trim().split(' ');
    var min = Math.min(arg[0], arg[1]),
  		max = Math.max(arg[0], arg[1]);
    var out = '';
    for(var i = 0; i < max; i++) {
        out += min
    }
    console.log(out)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));