J. Just the Betas
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

A group of $$$N$$$ friends is going to play a game in which each player chooses an integer $$$P_i$$$. Then an integer $$$X$$$ greater than 1 was supposed to be drawn, but Pedro found a way to cheat and can choose this value.

Each player's score is given by $$$P_i \bmod X$$$, that is, the remainder of the division of $$$P_i$$$ by $$$X$$$.

Any player whose score is equal to $$$0$$$ is called a beta, because nothing is left from the division.

Help Pedro choose a value of $$$X$$$ that maximizes the number of beta players.

Input

The first line of the input contains a single integer $$$N$$$ ($$$1 \leq N \leq 10^{5}$$$), representing the number of players.

The second line contains $$$N$$$ integers $$$P_i$$$ ($$$2 \leq P_i \leq 10^{6}$$$), representing the value chosen by the $$$i$$$-th player.

Output

Print a single integer $$$X$$$ $$$(2 \leq X \leq 10^{6})$$$ that maximizes the number of beta players.

If there are multiple values of $$$X$$$ that produce the same maximum number of beta players, print any of them.

Examples
Input
5
2 5 4 5 3
Output
2
Input
2
19 20
Output
19
Note