Petya and Vasya got employed as couriers. During the working day they are to deliver packages to n different points on the line. According to the company's internal rules, the delivery of packages must be carried out strictly in a certain order. Initially, Petya is at the point with the coordinate s1, Vasya is at the point with the coordinate s2, and the clients are at the points x1, x2, ..., xn in the order of the required visit.

The guys agree in advance who of them will deliver the package to which of the customers, and then they act as follows. When the package for the i-th client is delivered, the one who delivers the package to the (i + 1)-st client is sent to the path (it can be the same person who went to the point xi, or the other). The friend who is not busy in delivering the current package, is standing still.

To communicate with each other, the guys have got walkie-talkies. The walkie-talkies work rather poorly at great distances, so Petya and Vasya want to distribute the orders so that the maximum distance between them during the day is as low as possible. Help Petya and Vasya to minimize the maximum distance between them, observing all delivery rules. 

Input

The first line contains three integers n, s1, s2 (1 ≤ n ≤ 100 000, 0 ≤ s1, s2 ≤ 109) — number of points of delivery and starting positions of Petya and Vasya.

The second line contains n integers x1, x2, ..., xn — customers coordinates (0 ≤ xi ≤ 109), in the order to make a delivery. 

It is guaranteed, that among the numbers s1, s2, x1, ..., xn there are no two equal.

Output

Output the only integer, minimum possible maximal distance between couriers during delivery.

Examples

Input

2 0 10
5 6


Output

10


Input

3 2 1
3 4 5


Output

1


Input

1 4 5
2


Output

2

Note

In the first test case the initial distance between the couriers is 10. This value will be the answer, for example, Petya can perform both deliveries, and Vasya will remain at the starting point.

In the second test case you can optimally act, for example, like this: Vasya delivers the package to the first customer, Petya to the second and, finally, Vasya delivers the package to the third client. With this order of delivery, the distance between the couriers will never exceed 1.

In the third test case only two variants are possible: if the delivery of a single package is carried out by Petya, the maximum distance between them will be 5 - 2 = 3. If Vasya will deliver the package, the maximum distance is 4 - 2 = 2. The latter method is optimal.
#include <bits/stdc++.h>
using namespace std;
int n, a[110000];
set<int> Set;
set<int>::iterator it;
set<int>::reverse_iterator it2;
bool ok(int x) {
  Set.clear();
  Set.insert(a[0]);
  for (int i = 2; i < n; i++) {
    bool tt = !Set.empty();
    int cnt = 0;
    for (it = Set.begin(); it != Set.end(); it++) {
      if (abs(a[i] - (*it)) > x)
        cnt += 1;
      else
        break;
    }
    while (cnt--) {
      Set.erase(Set.begin());
    }
    cnt = 0;
    for (it2 = Set.rbegin(); it2 != Set.rend(); it2++) {
      if (abs(a[i] - *it2) > x)
        cnt += 1;
      else
        break;
    }
    while (cnt--) {
      Set.erase(*Set.rbegin());
    }
    if (abs(a[i] - a[i - 1]) <= x && tt) Set.insert(a[i - 1]);
  }
  return !Set.empty();
}
int main() {
  scanf("%d%d%d", &n, &a[0], &a[1]);
  n += 2;
  for (int i = 2; i < n; i++) scanf("%d", &a[i]);
  int l = abs(a[0] - a[1]) - 1, r = 2e9 + 1, mid;
  while (l < r - 1) {
    mid = (0LL + l + r) / 2;
    if (ok(mid))
      r = mid;
    else
      l = mid;
  }
  printf("%d\n", r);
}
