#include<iostream>
#include<cstdio>
using namespace std;
int lcm(int a,int b)
{
if(a>b) swap(a,b);
int r=b%a,d=a*b;
while(r!=0)
{
b=a;
a=r;
r=b%a;
}
return d/a;
}
int main()
{
double a,b;
cin>>a>>b;
printf("%d\n",lcm(a,b));
return 0;
}