def function1(num1, num2):
    if num2 == 0:
        return num1
    else:
        return function1(num2, num1 % num2)
    
def function2(num1, num2):
    return int(num1*num2 / function1(num1, num2))

num1, num2 = map(int, input().split())
print(function2(num1, num2))