while True:
try:
num = list(map(int,input().split()))
except:
break
else:
n1,n2=num[0],num[1]
if n1>n2:
n1,n2 = n2,n1
for i in range(n2,n1*n2+1,n2):
if i%n1==0:
print(i)
break