a = int(input()) b = int(input()) for i in range(max(a,b),(a*b)+1): if i % a == 0 and i % b == 0: print(i) break
To embed this project on your website, copy the following code and paste it into your website's HTML: