import fractions

A, B = list(map(int, input().split()))





def abc(A, B):

    return (A*B) // fractions.gcd(A, B)





print((abc(A, B)))



import fractions

A, B = list(map(int, input().split()))



print((int(A*B/fractions.gcd(A, B))))

import fractions

A, B = list(map(int, input().split()))


def abc(A, B):
    return (A * B) // fractions.gcd(A, B)


print((abc(A, B)))

import fractions

A, B = list(map(int, input().split()))
print((int(A * B / fractions.gcd(A, B))))

- - -def abc(A, B): -    return (A * B) // fractions.gcd(A, B) - - -print((abc(A, B))) +print((int(A * B / fractions.gcd(A, B))))