l = list(map(int, input().strip().split()))
a, b = max(l), min(l)
while b > 0:
    temp = a % b
    a = b
    b = temp
print(l[0] * l[1] // a)