program main
	implicit none
	integer(8):: A,B,C,N,i,j,t,k,ka,kb
	read *, A,B
   	if(B>A)then
		N=A
		A=B
		B=N
	end if
	ka=A;kb=B
	
	!!!最大公約数を求める	
   	C=mod(a,b)
	do while (C/=0)
		A=B
		B=C
		C=mod(A,B)
	end do
	print '(I0)',(ka*kb)/B
	!print'(a)'!文字
	!print'(f0.14)'!double型
	
end program main