'use strict';
const main = input => {
  let numbers = input[0].split(' ').map(val => parseInt(val));
  let a = numbers[0], b = numbers[1];
  const gcd = (l, r) => {
    let ans;
    if(l < r) {
      ans = l;
      l = r;
      r = ans;
    }
    while ((ans = l%r) != 0) {
      l = r;
      r = ans;
    }
    return r;
  }
  console.log(a*b/gcd(a,b));
  
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));