object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val a,b = sc.nextLong
  
  def loop(p: Long, q: Long): Long = {
    val r = if (p > q) p % q else q % p
    if (r == 0) q
    else loop(q, r)
  }
  
  println(a * b / loop(a, b))
}