x, y = gets.chomp.split.map(&:to_i).sort

a = x
b = y

least_common_multiple = 0
while true do
  r = b % a
  if r == 0
    least_common_multiple = a
    break
  end
  b = a
  a = r
end

puts x / least_common_multiple * y