function Main(input) {
    input = input.split(" ");
	console.log( parseInt(input[0]*input[1]/gcd(input[0], input[1])) );
}
function gcd(a, b){
    return a==0? b : gcd(b%a, a);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));