function lcm(a,b) {
    var g = (n, m) => m ? g(m, n % m) : n;
    return a * b / g(a, b);
}

function Main(input) {
    var A = parseInt(input[0], 10);
    var B = parseInt(input[1], 10);

    console.log(lcm(A, B));
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));