m, n = list(map(int, input().split())) def lcm(a, b): """质因数分解""" p = 1 i = 2 while i <= min(a, b): if a % i == 0 and b % i == 0: p *= i a, b = a // i, b // i else: i += 1 p = p * a * b return p print(lcm(m, n))