function lcm(a,b) {
  var g = (n, m) => m ? g(m, n % m) : n
  return a * b / g(a, b)
}

function main(input) {
  var nums = input.split(" ").map(Number)
  console.log(lcm(nums[0], nums[1]))
}

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