import fractions



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



def lcm(A, B):

    return (A * B) // fractions.gcd(A, B)





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



from math import gcd



def lcm(x, y):

    return (x * y) // gcd(x, y)



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((lcm(A, B)))

A, B = list(map(int, input().split()))
from math import gcd


def lcm(x, y):
    return (x * y) // gcd(x, y)


print((lcm(A, B)))

-import fractions - +from math import gcd -def lcm(A, B): -    return (A * B) // fractions.gcd(A, B) +def lcm(x, y): +    return (x * y) // gcd(x, y)