import fractions

A, B = (int(x) for x in input().split())

print((A*B//fractions.gcd(A,B)))
def gcd(a,b):

  if a <= b:

    a,b = b,a

  if b == 0:

    return a

  else:

    return gcd(b,a%b)

  

A, B = (int(x) for x in input().split())

print((A*B//gcd(A,B)))
import fractions

A, B = (int(x) for x in input().split())
print((A * B // fractions.gcd(A, B)))

def gcd(a, b):
    if a <= b:
        a, b = b, a
    if b == 0:
        return a
    else:
        return gcd(b, a % b)


A, B = (int(x) for x in input().split())
print((A * B // gcd(A, B)))

-import fractions +def gcd(a, b): +    if a <= b: +        a, b = b, a +    if b == 0: +        return a +    else: +        return gcd(b, a % b) + -print((A * B // fractions.gcd(A, B))) +print((A * B // gcd(A, B)))