Problem: There were types of swords in the theater basement which had been used during the plays. Moreover there were exactly swords of each type. people have broken into the theater basement and each of them has taken exactly swords of some single type. Note that different people might have taken different types of swords. Note that the values and are unknown for you.
The next morning the director of the theater discovers the loss. He counts all swords — exactly swords of the -th type are left untouched.
The director has no clue about the initial number of swords of each type in the basement, the number of people who have broken into the basement and how many swords each of them have taken.
For example, if , then one of the possible situations is , and . Then the first three people took swords of the first type and the other two people took swords of the third type. Note that you don't know values and beforehand but know values of and .
Thus he seeks for your help. Determine the minimum number of people , which could have broken into the theater basement, and the number of swords each of them has taken.
Input Format: The first line of the input contains one integer — the number of types of swords.
The second line of the input contains the sequence , where equals to the number of swords of the -th type, which have remained in the basement after the theft. It is guaranteed that there exists at least one such pair of indices that .
Output Format: Print two integers and — the minimum number of people which could have broken into the basement and the number of swords each of them has taken.
Note: In the first example the minimum value of equals to , i.e. the minimum number of people who could have broken into the basement, is . Each of them has taken swords: three of them have taken swords of the first type, and two others have taken swords of the third type.
In the second example the minimum value of is , i.e. the minimum number of people who could have broken into the basement, equals to . He has taken swords of the first type.