import java.util.Scanner;

fun main (args : Array<String>) {
  val input = Scanner(System.`in`)
  
  while (input.hasNext()) {
    val A = input.nextLong()
    val B = input.nextLong()
    
    println(A * (B / gcd(A, B)))
  }
}

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