import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String [] arr = bf.readLine().split(" ");
int a = Integer.parseInt(arr[0]);
int b = Integer.parseInt(arr[1]);
int num = a < b ? gys(a, b) : gys(b, a);
int gbs = a*b/num;
System.out.println(gbs);
}
private static int gys(int low, int high) {
if (high % low == 0){
return low;
}
return gys(high % low, low);
}
}