fun main(args: Array<String>) {
  val ab = readLine()!!.split(" ").map { it.toInt() }
  var a = ab.max()!!
  var b = ab.min()!!

  var r = a % b
  while( r != 0 ){
    a = b
    b = r
    r = a % b
  }

  print(ab[0].toLong()*ab[1]/b)
}