import fractions

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

print((a * b // fractions.gcd(a, b)))
a, b = list(map(int, input().split()))

def gcd(x, y):

    x, y = max(x, y), min(x, y)

    if y == 0:

        return x

    return gcd(y, x % y)

  

print((a * b // gcd(a, b)))
import fractions

a, b = list(map(int, input().split()))
print((a * b // fractions.gcd(a, b)))

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


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


print((a * b // gcd(a, b)))

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