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

    if (a < b) {
        val tmp = a
        a = b
        b = tmp
    }

    val x: Long = (a * b)
    var r = (a % b).toInt()

    while (r != 0) {
        a = b
        b = r.toLong()
        r = (a % b).toInt()
    }
    println(x / b)
}