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

# 这种方式的求最大公约数是我见过最简洁的
def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a%b)

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