'use strict';
function main(input) {
  const args = input.split(' '),
        A = parseInt(args[0]),
        B = parseInt(args[1]);
  var min = Math.min(A, B);
  var GCD = 1;
  for (let i = 2; i <= min; ++i) {
    if (A % i === 0 && B % i === 0) {
      GCD = i;
    }
  }
  console.log(A * B / GCD);
}

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