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