Astronomy
There are n planets in the planetary system of star X. They orbit star X in circular orbits located in the same plane. Their tangent velocities are constant. Directions of orbiting of all planets are the same. Sometimes the event happens in this planetary system which is called planet parade. It is the moment when all planets and star X are located on the same straight line. Your task is to find the length of the time interval between two consecutive planet parades.
Input
The first line contains the number of planets n (2 ≤ n ≤ 1000).
Second line contains n integers t[i]
(1 ≤ t[i]
≤ 10000) - the orbiting periods of planets. Not all of t[i]
are the same.
Output
Print the answer as a common irreducible fraction, separate numerator and denominator by a space.