include[HTML_REMOVED]
using namespace std;
int lcm(int a, int b)
{
int temp=a;
cin >> a >> b;
while(temp%b!=0)
{
temp+=a;
}
return temp;
}
int main()
{
int a,b;
cin >> a >> b;
cout << lcm(a,b) << endl;
return 0;
}