e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more

LCM

Find the Lowest Common Multiple of n positive integers.

Input

The first line contains number n (1 < n < 21). The second line contains n positive integers, separated with a space. All integers are not greater than 100.

Output

Print the Lowest Common Multiple of n given numbers.

Time limit 1 second
Memory limit 122.17 MiB
Input example #1
2
2 3
Output example #1
6