#include<bits/stdc++.h>
using namespace std;
int main()
{
	int m,n,i,a;
	cin>>m>>n;
	if(m<n) swap(m,n);
	for(i=1;i<=n;i++)
	{
	a=m*i;
	if(a%n==0) break; 	
	}
	cout<<a;
	return 0;
}

/**************************************************************
	Problem: 1087
	User: ccf
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/