import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String ab = scan.nextLine();
int a = Integer.valueOf(ab.split(" ")[0].trim());
int b = Integer.valueOf(ab.split(" ")[1].trim());
int gcdVal = gcd(a, b);
System.out.println(a * b / gcdVal);
}
public static int gcd(int m, int n) {
return n == 0 ? m : gcd(n, m % n);
}
}