#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int a,b;
cin>>a;
cin>>b;
if((max(a,b)%min(a,b))==0)
{
cout<<max(a,b)<<endl;
}
else
{
int i;
for(i=1;i<=max(a,b);i++)
{
int v=i*min(a,b);
if(v%a==0&&v%b==0)
{
cout<<v<<endl;
break;
}
}
}
return 0;
}