import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
BigInteger a=in.nextBigInteger();
BigInteger b=in.nextBigInteger();
Main ss=new Main();
System.out.println(ss.lcm(a,b));
}
private BigInteger gcd(BigInteger a, BigInteger b){
if (a.mod(b).equals(BigInteger.ZERO)){
return b;
}else {
return gcd(b,a.mod(b));
}
}
private BigInteger lcm(BigInteger a,BigInteger b){
return (a.multiply(b).divide(gcd(a,b)));
}
}