# Uses python3
import sys


def lcm_naive(a, b):
    for l in range(1, a*b + 1):
        if l % a == 0 and l % b == 0:
            return l

    return a*b


def gcd(a, b):
    if a%b == 0:
        return b
    elif b%a == 0:
        return a
    
    if a > b:
        return gcd(a%b, b)
    else:
        return gcd(b%a, a)


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

if __name__ == '__main__':
    # input = sys.stdin.read()
    a, b = map(int, input().split())
    # print(lcm_naive(a, b))
    print(lcm(a, b))


[]