object Main extends App {
    val sc = new java.util.Scanner(System.in)

    val a,b = sc.nextInt

    println(lcm(a,b))
    
    def gcd(x:Int,y:Int):Int = if (y > 0) gcd(y,x%y) else x
    def lcm(x:Int,y:Int):Int = x/gcd(x,y) * y
}