Kozak Vus and a chip#10356

Kozak Vus and a chip

1 second
256 megabytes
Easy

Recently, Kozak Vus found a chip and points that are all located on the same straight line. The chip initially has coordinate , and the -th point has coordinate a_i.

Kozak Vus can first choose any positive integer . After that, he can change the chip's coordinate any number of times, by either adding or subtracting , that is, move the chip in either direction by a distance of .

Kozak Vus is interested in the following question: what is the largest value of such that the chip can visit all given points?

Input

The first line contains two integers and (2 \le n \le 10^5, -10^{18} \le x \le 10^{18})—the number of points on the line and the initial coordinate of the chip.

The second line contains integers a_1, a_2, \dots, a_n (-10^{18} \le a_i \le 10^{18})—the coordinates of the points.

It is guaranteed that all a_i are pairwise distinct.

Output

Output a single integer—the maximum value of such that the chip will be able to visit all given points.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading

Scoring

If your solution works correctly for n, |a_i| \le 100, you will receive at least points.