Shortest Path Length (minautoway)#11491

Shortest Path Length (minautoway)

1 second
512 megabytes
Easy

drivers drove cars at different constant speeds in km/h. All of them covered the path between points A and B in a whole number of hours. What is the shortest possible length of this path in km?

Input

The first line contains the number of drivers (2 \le n \le 5). The second line contains the speeds (from to km/h inclusive) at which they drove.

Output

Output the minimum possible length of this path in km.

Examples

Example 1

Loading
Loading