fun main(args: Array<String>) {
  val (A, B) = readLine()!!.split(" ").map { it.toLong() }
  println(lcm(A, B))
}

fun gcd(m: Long, n: Long): Long {
  if (m < n) return gcd(n, m)
  return if (n == 0L) m else gcd(n, m % n)
}

fun lcm(m: Long, n: Long): Long {
  return m * n / gcd(m, n)
}