#include<stdio.h>
int f(int m,int n);
int main()
{
int m,n,c;
while(~scanf("%d",&m))
{
scanf("%d",&n);
c=f( m, n);
printf("%d\n",c);
}
return 0;
}
int f(int m,int n)
{
int remainder,m1,n1;
m1=m;
n1=n;
while (n != 0)
{
remainder = m % n;
m = n;
n = remainder;
}
return m1*n1/m;
}