function gcd(a, b){
  if (a%b == 0) return b;
  return gcd(b, a%b);
}

function lcm(a, b){
  return a*b / gcd(a, b);
}

function Main(input) {
	input = input.split(" ");
	var a = parseInt(input[0], 10);
	var b = parseInt(input[1], 10);
	console.log(lcm(a, b));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));