import sys

import fractions

input = sys.stdin.readline

sys.setrecursionlimit(10 ** 7)



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

print((int(A * B / fractions.gcd(A, B))))

import sys

stdin = sys.stdin

sys.setrecursionlimit(10 ** 7)



i_i = lambda: int(i_s())

i_l = lambda: list(map(int, stdin.readline().split()))

i_s = lambda: stdin.readline().rstrip()



def gcd(a,b):

    while b:

        a, b = b, a%b

    return a



def lcm(a,b):

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



A, B = i_l()



print((lcm(A,B)))

import sys
import fractions

input = sys.stdin.readline
sys.setrecursionlimit(10**7)
A, B = list(map(int, input().split()))
print((int(A * B / fractions.gcd(A, B))))

import sys

stdin = sys.stdin
sys.setrecursionlimit(10**7)
i_i = lambda: int(i_s())
i_l = lambda: list(map(int, stdin.readline().split()))
i_s = lambda: stdin.readline().rstrip()


def gcd(a, b):
    while b:
        a, b = b, a % b
    return a


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


A, B = i_l()
print((lcm(A, B)))

-import fractions -input = sys.stdin.readline +stdin = sys.stdin -A, B = list(map(int, input().split())) -print((int(A * B / fractions.gcd(A, B)))) +i_i = lambda: int(i_s()) +i_l = lambda: list(map(int, stdin.readline().split())) +i_s = lambda: stdin.readline().rstrip() + + +def gcd(a, b): +    while b: +        a, b = b, a % b +    return a + + +def lcm(a, b): +    return a * b // gcd(a, b) + + +A, B = i_l() +print((lcm(A, B)))