function gcd(a, b){
  for (var r = a % b; r != 0; r = a % b) {
            a = b;
            b = r;
  }
  return b;
}

function main(input){
  	const args = input.split(' ');
    const a = parseInt(args[0], 10);
    const b = parseInt(args[1], 10);
	console.log(a / gcd(a,b) * b);
}


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