def main():

    a = input("")
    b = len(a)

    c = 0
    while c < b - 1:

        if a[c] == " ":
            break
        c += 1

    d = 0
    e = ""
    while d < c:
        e += a[d]
        d += 1

    f = c + 1
    g = ""
    while f < len(a):
        g += a[f]
        f += 1

    e = int(e)
    g = int(g)

    h = min(e, g)
    j = max(e, g)

    k = 2
    while k <= h:
        if h % k == 0 and j % k == 0:
            h = h / k
            if h % k != 0:
                k += 1
        else:
            k += 1
    t = int(h * j)
    print(t)


main()