import fractions

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

ab = a * b

n = max(a, b)

gcd = int(fractions.gcd(a, b))

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

ab = a*b

if a < b:

  a, b = b, a

while b > 0:

  a, b = b, a % b

print((ab // a))
import fractions

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

a, b = list(map(int, input().split()))
ab = a * b
if a < b:
    a, b = b, a
while b > 0:
    a, b = b, a % b
print((ab // a))

-import fractions - -n = max(a, b) -gcd = int(fractions.gcd(a, b)) -print((ab // gcd)) +if a < b: +    a, b = b, a +while b > 0: +    a, b = b, a % b +print((ab // a))