while True:
try:
a=input()
A=int(a.split(' ')[0])
B=int(a.split(' ')[1])
a=A
b=B
def a1(a,b):
if(a%b==0):
return b
else:
return a1(b,a%b)
print(A*B//a1(A,B))
except:
break