fun main(s: Array<String>) {
  val (a, b) = readLine()!!.split(' ').map { it.toLong() }
  println(a * b / gcd(a, b))
}
 
fun gcd(a: Long, b: Long): Long {
    if(a < b) return gcd(b, a)
    if(b == 0L) return a
    return gcd(b, a % b)
}