function gcd(a, b) {
    return (a == b) ? a : gcd(Math.abs(a - b), (a > b) ? b : a);
}
function lcm(a, b) {
    return a * b / gcd(a, b);
}
function Main(input) {
  input = input.trim();
  input = input.split(" ")
  console.log(lcm(input[0],input[1]))
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));