import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in=new Scanner(System.in);
int a=in.nextInt();
int b=in.nextInt();
System.out.println(a/gcd(a,b)*b);
}
private static int gcd(int a, int b) {
return b==0?a:gcd(b,a%b);
}
}