import java.lang.Math

val MOD: Int = 1000000000 + 7
val MODL: Long = MOD.toLong()

fun main(args: Array<String>)
{
    val (a, b)  = read().split(" ").map{it.toLong()}
    val g = gcd(a,b)

    println(a * b / g)
}

fun gcd(a: Long, b: Long): Long {
    if (b == 0L) return a

    return gcd(b, a % b)
}

fun read(): String = readLine()!!
