object Main extends App {
	val Array(a, b) = scala.io.StdIn.readLine.split(" ").map(_.toLong)

	val gp0 = if(a < b) a else b
	val gp1 = if(a < b) b else a

	var ans = gp1

	while(ans % gp0 != 0L){
		ans += gp1
	}

	println(ans)

}