function Main(input) {
    input = input.split(" ").map(x => parseInt(x));
    var i = 2;
    while(input[0]% i!= 0 || input[1]% i!= 0){
        i++;
        if(i>10){
            i=1;
            break;
        }
    }

  	console.log('%d',input[1]*input[0]/i);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));