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



def gcd(a, b):

  if b == 0:

    return a

  else:

    return gcd(b, a % b)



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



### GCD ###

def gcd(a, b):

  if b == 0:

    return a

  return gcd(b, a%b)



### LCM ###

def lcm(a, b):

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



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


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


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

A, B = list(map(int, input().split()))
### GCD ###
def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


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


print((lcm(A, B)))

- - +### GCD ### -    else: -        return gcd(b, a % b) +    return gcd(b, a % b) -print((A * B // gcd(A, B))) +### LCM ### +def lcm(a, b): +    return a * b // gcd(a, b) + + +print((lcm(A, B)))