import java.util.Scanner

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

  val a = sc.nextLong
  val b = sc.nextLong

  val res = a * b / gcd(a,b)

  println(res)



  def gcd(a: Long, b: Long): Long ={
    (a,b) match{
      case (x,y) if y == 0 => x
      case (x,y) if x < y  => gcd(y, x)
      case (x,y)           => gcd(y, x % y)
    }
  }

}