#include<stdio.h>
int lcm(int a,int b){
if(a<b){
int t=a;
a=b;
b=t;
}
int x=a*b;
while(b!=0){
int t=b;
b=a%b;
a=t;
}
return x/a;
}
int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d",lcm(a,b));
return 0;
}