from fractions import gcd



# 最小公倍数

def lcm(x, y):

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



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



ans = lcm(A, B)



print(ans)
# C - Snack

# https://atcoder.jp/contests/abc148/tasks/abc148_c



from fractions import gcd



def lcm(x, y):

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



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

print((lcm(a, b)))
from fractions import gcd

# 最小公倍数
def lcm(x, y):
    return (x * y) // gcd(x, y)


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

# C - Snack
# https://atcoder.jp/contests/abc148/tasks/abc148_c
from fractions import gcd


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


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

+# C - Snack +# https://atcoder.jp/contests/abc148/tasks/abc148_c -# 最小公倍数 + -A, B = list(map(int, input().split())) -ans = lcm(A, B) -print(ans) +a, b = list(map(int, input().split())) +print((lcm(a, b)))