import fractions

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





def lcm(x, y):

    return x*y//fractions.gcd(x, y)





print((lcm(a, b)))
def gcd(x, y):

    if x == 0:

        return y

    else:

        return gcd(y % x, x)





def lcm(x, y):

    return x * y // gcd(x, y)





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



print((lcm(a, b)))



import fractions

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


def lcm(x, y):
    return x * y // fractions.gcd(x, y)


print((lcm(a, b)))

def gcd(x, y):
    if x == 0:
        return y
    else:
        return gcd(y % x, x)


def lcm(x, y):
    return x * y // gcd(x, y)


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

-import fractions - -a, b = list(map(int, input().split())) +def gcd(x, y): +    if x == 0: +        return y +    else: +        return gcd(y % x, x) -    return x * y // fractions.gcd(x, y) +    return x * y // gcd(x, y) +a, b = list(map(int, input().split()))