function main(input) {
  var arr = input.split(' ').map(n => +n)
  var a = arr[0]
  var b = arr[1]
  var g = function(n, m){
  	return m ? g(m, n % m) : n
  }
  console.log(a * b / g(a, b))
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));