#include<stdio.h>
int main()
{
	int r,t,p,m,n;
scanf("%d%d",&n,&m);
if(n<m)
{
	t=n;n=m;m=t;
}
p=m*n;
while(m!=0)
{
	r=n%m;n=m;m=r;
}

printf("%d",p/n);
}