function smallestCommons(arr) {
    var range = [];
    for (var i = Math.max(arr[0], arr[1]); i >= Math.min(arr[0], arr[1]); i--) {
    range.push(i);
    }

    return range.reduce(function(previousValue, currentValue) {
    var gcdPrevCurr = gcd(previousValue, currentValue);
    return (previousValue * currentValue) / gcdPrevCurr;
    });

    function gcd(x, y) {    // ユークリッドの互除法使用
    if (y === 0)
        return x;
    else
        return gcd(y, x%y);
    }
}
function Main(input) {
  input = input.trim();
  input= input.split(" ")
  var a=input[1]
  var b=input[2]
	console.log(smallestCommons([a,b]))
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
