简单但超时...

a, b = map (int, input().split())
res = []
for n in range(1, a*b+1):
    if n%a==0 and n%b==0:
        res.append(n)
print(min(res))