def func(x,y):
    k = 1
    for i in range(min(x, y),0,-1):
        if x % i == 0 and y % i == 0:
            k = i
            return x*y/k
    return x*y/k

while True:
    try:
        a,b = map(int, input().split())
        c = func(a, b)
        print(int(c))
        pass
    except:
        break