A,B = list(map(int,input().split())) ls = [] for i in range(1,int(A*B**0.5)+1): if (A%i == 0) and (B%i == 0): ls.append(i) print(int(A*B/ls[-1]))