function main(input) {
    const args = input.split(' ');
    const a = parseInt(args[0], 10);
    const b = parseInt(args[1], 10);
	 var arr=[]
 arr[0]=build(a);
 arr[1]=build(b);
	arr.sort()
  console.log(arr)
	
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));

function build (num){
  tmp=''
  for(var i=0;i<num;i++){
  tmp+=num;
  }
  return tmp;
}
