#include<stdio.h>
main()
{int x,y,z,m,i,a=1;
scanf("%d%d",&x,&y);
m=x;
if(x<y){
	x=y;
	y=m;
}
for(i=2;i<=y;i++){
	if(x%i==0 && y%i==0)
	a=i;
}
printf("zdgys=%d",a);
printf("zxgbs=%d",x*y/a);
 }