def min(a, b)
  if a < b
    return a
  else
    b
  end
end

A, B = gets.split.map(&:to_i)
div = min(A, B)
qa = A
qb = B
while 1 < div
  if (A % div == 0) && (B % div == 0)
    qa = A / div 
    qb = B / div
    puts div * qa * qb
    exit
  else
    div -= 1
  end
end
puts A * B

