"use strict";
// import bigInt from 'big-integer'

const gcd = (a, b) => {
  if (b === 0) return a;

  return gcd(b, a % b);
};

const lcm = (a, b) => {
  return (a * b) / gcd(a, b);
};

const Main = input => {
  input = input.trim().split(" ");
  let a = parseInt(input[0], 10);
  let b = parseInt(input[1], 10);
  if (a < b) {
    const tmp = a;
    a = b;
    b = tmp;
  }

  console.log(lcm(a, b));
};

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
