'use strict'

function Main(input) {
    const AB = input.trim().split(" ");
    const A = AB[0]
    const B = AB[1]

    let m, n;
    if (A > B) {
        m = A
        n = B
    } else {
        m = B
        n = A
    }

    while (n != 0) {
        let tmp = n
        n = m % n
        m = tmp
    }

    console.log(A * B / m)
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'));