'use strict'

function gcd (x, y) {
  if (y == 0) return x
  else return gcd(y, x % y)
}

const main = (INPUT) => {
  const [A, B] = INPUT.split('\n')[0].split(' ')
  console.log(A * B / gcd(A, B))
}

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