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)
    else:
        continue
print(int((A*B)/max(ls)))