import java.io.{BufferedReader, InputStreamReader}

import scala.annotation.tailrec

object Main {
  def main(args: Array[String]): Unit = {
    val in = new BufferedReader(new InputStreamReader(System.in))
    val Array(a, b) = in.readLine().split("\\s+").map(_.toLong)

    System.err.println(gcd(a,b))
    System.out.println(a * b / gcd(a,b))
  }

  def gcd(a: Long, b: Long): Long = {
    @tailrec
    def inner(a: Long, b: Long): Long = {
     a % b match {
       case 0 => b
       case r => inner(b, r)
     }
    }

    if (a > b) {
      inner(a, b)
    } else {
      inner(b, a)
    }
  }
}
