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

def lcm(a,b):
    return (a/(gcd(a,b))*b
    
a,b=map(int,input().split())
print(lcm(a,b))
    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: