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

import fractions



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

def gcd(a, b):

    while True:

        a, b = b, a%b

        if b == 0:

            return a



def lcm(a, b):

    return int((a*b) // gcd(a, b))



a, b = list(map(int, input().split()))



print((lcm(a, b)))
A, B = list(map(int, input().split()))
import fractions

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

def gcd(a, b):
    while True:
        a, b = b, a % b
        if b == 0:
            return a


def lcm(a, b):
    return int((a * b) // gcd(a, b))


a, b = list(map(int, input().split()))
print((lcm(a, b)))

-A, B = list(map(int, input().split())) -import fractions +def gcd(a, b): +    while True: +        a, b = b, a % b +        if b == 0: +            return a -print((int(A * B / fractions.gcd(A, B)))) + +def lcm(a, b): +    return int((a * b) // gcd(a, b)) + + +a, b = list(map(int, input().split())) +print((lcm(a, b)))