A, B = gets.chomp.split(' ').map(&:to_i)
def gcd(a, b)
  a, b = b, a if a < b
  loop do
    m = a % b
    return b if m == 0
    a, b = b, m
  end
end
def lcm(a, b)
  return ((a * b) / gcd(a, b))
end
puts lcm(A, B)