publicclass Main{
publicstaticvoidmain(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
sc.close();
System.out.println(lcm(a, b));
}
privatestaticintlcm(int a, int b) {
int g = gcd(a, b);
return a * b / g;
}
privatestaticintgcd(int a, int b) {
if (b == 0) {
return a;
} else {
return gcd(b, a % b); //辗转相除法
}
}
}
}