import fractions

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

def lcm(a, b):

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

print((int(lcm(A, B))))
import math

def lcm(A, B):

    return int((A * B) / math.gcd(A, B))

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

print((lcm(A,B)))
import fractions

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


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


print((int(lcm(A, B))))

import math


def lcm(A, B):
    return int((A * B) / math.gcd(A, B))


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

-import fractions +import math + + +def lcm(A, B): +    return int((A * B) / math.gcd(A, B)) + - - -def lcm(a, b): -    return (a * b) / fractions.gcd(a, b) - - -print((int(lcm(A, B)))) +print((lcm(A, B)))