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

fun lcm(a: Long, b: Long): Long {
    var a = a
    var b = b
    var c = a
    c *= b
    while (true) {
        val temp = a % b
        if (temp == 0L) {
            break
        }
        a = b
        b = temp
    }
    return (c / b)
}