'''
解题思路:
a,b的最小公倍数:当(a*i)%b == 0时,最小的i对应的a*i
'''
a,b = map(int,input().strip().split())
#print(a,b)

i = 1
while (a*i)%b != 0:
    i += 1
print(a*i)