function main(input) {
  var a = input[0].split(" ")[0]-0;
  var b = input[0].split(" ")[1]-0;
  console.log(a*b/gcd(a,b));

}

function gcd(a,b){
  if(a%b==0) retun b;
  return gcd(b,a%b);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))
