'use strict'

const gcd = (a, b)  => {
  return b ? gcd(b, a % b) : a
}

const lcm = (a, b) => {
  return a * b / gcd(a, b);
}

const main = input => {
  const args = input.split(' ')
  const numA = parseInt(args[0])
  const numB = parseInt(args[1])
  
  console.log(lcm(numA, numB)) 
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));