def gcd(a,b)
    if a > b
        c = a
        d = b
    else
        c = b
        d = a
    end
    e = 0
    while c % d != 0
         e = c % d
         c = d
         d = e
    end
    return d
end

str = gets.split
A,B = str[0].to_i, str[1].to_i
answer = A*B/gcd(A,B)
puts answer