fun main (args : Array<String>) {
	val (a, b) = readLine()!!.split(" ")
	val A : Long = a.toLong()
	val B : Long = b.toLong()
	val N : Long = 0
	var i : Long = 1
	if (A > B) {
		while ((A * i) % B != N) {
			i++
		}
		return println("${A * i}")
	} else {
		while ((B * i) % A != N) {
			i++
		}
		return println("${(B * i)}")
	}
}