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?
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 the minimum possible length of this path in km.
Example 1