function Main(input){
    const AB = input.split(' ').map(Number);

    // 最小公約数
    const GCD = (a, b) => {
        if(a % b === 0) return b;
        return GCD(b, a % b);
    }
    console.log((AB[0] * AB[1]) / GCD(AB[0], AB[1]));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
