def lcm(a, b): k = 1 while k % a != 0 or k % b != 0: k += 1 return k a, b = map(int, input().split()) print(lcm(a, b))