#include<cstdio>
#include<iostream>
using namespace std;
int gcd(int a,int b)
{
return b==0?a:gcd(b,a%b);
}
int main()
{
int n,m;
while(scanf("%d%d",&n,&m)!=EOF)
{
int g=gcd(n,m);
int ans=g*(n/g)*(m/g);
cout<<ans<<endl;
}
return 0;
}
#include<cstdio>
#include<iostream>
using namespace std;
int gcd(int a,int b)
{
return b==0?a:gcd(b,a%b);
}
int main()
{
int n,m;
while(scanf("%d%d",&n,&m)!=EOF)
{
int g=gcd(n,m);
int ans=g*(n/g)*(m/g);
cout<<ans<<endl;
}
return 0;
}