ary = gets.split(" ").map(&:to_i)
a = ary[0]
b = ary[1]

def max_calc(a, b)
  r = 1
  while r != 0
    r = a % b
    if r == 0
      return b
    else
      a = b
      b = r
    end
  end
end

if a > b
  max_calc = max_calc(a, b)
elsif a < b
  max_calc = max_calc(b, a)
else
  result = a
end

result = (a * b) / max_calc

puts result