Kozak Vus and a chip
Recently, Kozak Vus found a chip and points that are on the same line. The chip initially has the coordinate , and the -th point has the coordinate .
Cossack Mustache can first choose any positive integer . After that, change the chip's coordinate any number of times, adding or subtracting from it, that is, move the chip in any of the two directions by a distance of .
Kozak Vus is interested: at what maximum value of will the chip be able to visit all given points.
Input
The first line contains two integers and () — the number of points on the line and the initial coordinate of the chip.
The second line contains integers () — coordinates of chips.
It is guaranteed that all numbers of the array are pairwise different.
Output
Output one number — the maximum value of at which the chip will be able to visit all given points.
Examples
Scoring
If your solution will work correctly for , then it will score at least points.