def a(a, b)
  return a if a==b
  if a < b
    s = a * b
    g =  largeHandle(b, a)
    return (s/g)
  else
    s = a * b
    g =  largeHandle(a, b)
    return (s/g)
  end
end
def largeHandle(l, s)
  r = l%s
  return s if r==0
  largeHandle(l, r)
end

a, b = gets.chop.split.map(&:to_i)
print a(a, b)