#!/bin/bash
':' /*
docker run --rm -it -v $(cd $(dirname $0) && pwd):/vo:ro node:5.2-slim \
  /bin/bash -c "node /vo/$(basename $0) < /vo/g.inp"; exit $?
exit 0
*/

"use strict";

const gcd = (a, b) => {
  let r = a % b;
  if (r == 0) return b;
  return gcd(b, r);
}

const main = (input) => {
  let xy = Array.from(input[0].split(" "), x => Number.parseInt(x));
  let x = xy[0];
  let y = xy[1];
  return Math.floor(
    x * y / gcd(Math.max(x, y), Math.min(x, y))
  );
};
console.log(main(require("fs").readFileSync("/dev/stdin", "utf-8")
  .trim().split("\n")));
