function eu_test(Number1 , Number2)
{
    /*      var Number1 = 9529190;
     var Number2 = 7712525;*/
    var m,n,i,r;
    var debug = String();
    i = 0;

    if(Number1 < Number2)
    {
        m = Number2;
        n = Number1;
    }else{
        m = Number1;
        n = Number2;
    }

    while( true )
    {
        i++;
        r = m%n;
        debug +=  m+" % "+n+" = "+r+" \n";
        if( r==0 )break;
        else{
            if(n/2 < r)r = n-r;
            m = n;
            n = r;
        }
    }
    return n;
}

function getLCM(Number1, Number2){
    var tmp = eu_test(Number1, Number2);
    return Number1*Number2/tmp;
}

function main(input){
    var num = input.split('\n');
    for (var i = 0; i<num.length; i++){
        num[i] = Number(num[i]);
    }
    if(num.length==2){
        console.log(num[1]);
    }else{
        var res = getLCM(num[1], num[2]);
        for(var i=3; i<num.length; i++){
            res = getLCM(res, num[i]);
        }
        console.log(res);
    }


}

main(require("fs").readFileSync("/dev/stdin", "utf8"));