Problem: While some people enjoy spending their time solving programming contests, Dina prefers taking beautiful pictures. As soon as Byteland Botanical Garden announced Summer Oenothera Exhibition she decided to test her new camera there.

The exhibition consists of l = 10^{100} Oenothera species arranged in a row and consecutively numbered with integers from 0 to l - 1. Camera lens allows to take a photo of w species on it, i.e. Dina can take a photo containing flowers with indices from x to x + w - 1 for some integer x between 0 and l - w. We will denote such photo with [x, x + w - 1].

She has taken n photos, the i-th of which (in chronological order) is [x_i, x_i + w - 1] in our notation. She decided to build a time-lapse video from these photos once she discovered that Oenothera blossoms open in the evening. 

Dina takes each photo and truncates it, leaving its segment containing exactly k flowers, then she composes a video of these photos keeping their original order and voilà, a beautiful artwork has been created!

A scene is a contiguous sequence of photos such that the set of flowers on them is the same. The change between two scenes is called a cut. For example, consider the first photo contains flowers [1, 5], the second photo contains flowers [3, 7] and the third photo contains flowers [8, 12]. If k = 3, then Dina can truncate the first and the second photo into [3, 5], and the third photo into [9, 11]. First two photos form a scene, third photo also forms a scene and the transition between these two scenes which happens between the second and the third photos is a cut. If k = 4, then each of the transitions between photos has to be a cut.

Dina wants the number of cuts to be as small as possible. Please help her! Calculate the minimum possible number of cuts for different values of k.

Input

The first line contains three positive integer n, w, q (1 ≤ n, q ≤ 100 000, 1 ≤ w ≤ 10^9) — the number of taken photos, the number of flowers on a single photo and the number of queries.

Next line contains n non-negative integers x_i (0 ≤ x_i ≤ 10^9) — the indices of the leftmost flowers on each of the photos.

Next line contains q positive integers k_i (1 ≤ k_i ≤ w) — the values of k for which you have to solve the problem.

It's guaranteed that all k_i are distinct.

Output

Print q integers — for each width of the truncated photo k_i, the minimum number of cuts that is possible.

Examples

Input

3 6 5
2 4 0
1 2 3 4 5


Output

0
0
1
1
2


Input

6 4 3
1 2 3 4 3 2
1 2 3


Output

0
1
2

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
bool tag = 0;
const int maxn = 1e5 + 10;
int n, w, q;
int X[maxn];
int mn[maxn][17], mx[maxn][17];
int ONE = 50 * 50, MANY = 50;
int one[maxn], cmn[maxn], cmx[maxn];
int many[maxn], cut[maxn];
priority_queue<pair<int, int> > pq;
vector<int> lst;
int dst[maxn];
void init() {
  ONE = pow(n, 2 / 3.0);
  MANY = pow(n, 1 / 3.0);
  for (int i = 0; i < n; i++) mn[i][0] = mx[i][0] = X[i];
  for (int k = 1; k <= 16; k++)
    for (int i = 0; i <= n - (1 << k); i++) {
      mn[i][k] = min(mn[i][k - 1], mn[i + (1 << (k - 1))][k - 1]);
      mx[i][k] = max(mx[i][k - 1], mx[i + (1 << (k - 1))][k - 1]);
    }
  for (int i = 0; i < n; i++) {
    one[i] = i + 1;
    cmn[i] = cmx[i] = X[i];
    many[i] = min(n, i + MANY);
    cut[i] = many[i] - i;
  }
  for (int i = 0; i < n - 1; i++) {
    pq.push(make_pair(w - max(cmx[i], X[one[i]]) + min(cmn[i], X[one[i]]), i));
  }
  lst.clear();
  for (int i = 0; i < n; i++) dst[i] = -1;
}
void update(int x, int lim) {
  while (one[x] < n && one[x] - x <= ONE &&
         max(cmx[x], X[one[x]]) - min(cmn[x], X[one[x]]) <= w - lim) {
    cmx[x] = max(cmx[x], X[one[x]]);
    cmn[x] = min(cmn[x], X[one[x]]);
    one[x]++;
  }
  if (one[x] < n && one[x] - x <= MANY)
    pq.push(make_pair(w - max(cmx[x], X[one[x]]) + min(cmn[x], X[one[x]]), x));
  lst.clear();
  for (int i = x; i <= x + MANY; i = (i == n ? 0x3f3f3f3f : one[i]))
    lst.push_back(i);
  dst[x] = 0;
  many[x] = lst.back();
  cut[x] = lst.size() - 1;
  for (int i = x - 1; i >= 0 && i >= x - MANY; i--) {
    int to = one[i];
    if (dst[to] == -1) continue;
    dst[i] = dst[to] + 1;
    while (lst.back() - i > MANY) lst.pop_back();
    many[i] = lst.back();
    cut[i] = dst[i] + lst.size() - 1;
  }
  for (int i = x; i >= 0 && i >= x - MANY; i--) dst[i] = -1;
}
int calc(int lim) {
  while (!pq.empty() && pq.top().first >= lim) {
    int x = pq.top().second;
    pq.pop();
    if (tag) cout << x << " " << lim << endl;
    update(x, lim);
  }
  int x = 0, ret = 0;
  while (x < n) {
    if (tag) {
      cout << x << endl;
      system("pause");
    }
    while (one[x] < n && one[x] - x <= ONE &&
           max(cmx[x], X[one[x]]) - min(cmn[x], X[one[x]]) <= w - lim) {
      cmx[x] = max(cmx[x], X[one[x]]);
      cmn[x] = min(cmn[x], X[one[x]]);
      one[x]++;
      if (tag) cout << one[x] << " " << cmx[x] << " " << cmn[x] << endl;
    }
    if (many[x] != x) {
      if (tag) cout << x << " " << cut[x] << " " << many[x] << endl;
      ret += cut[x];
      x = many[x];
    } else if (one[x] - x <= ONE) {
      ret++;
      x = one[x];
    } else {
      int mmn = X[x], mmx = X[x], mto = x + 1;
      for (int k = 16; k >= 0; --k)
        if (mto + (1 << k) <= n &&
            max(mmx, mx[mto][k]) - min(mmn, mn[mto][k]) <= w - lim) {
          mmx = max(mmx, mx[mto][k]);
          mmn = min(mmn, mn[mto][k]);
          mto += 1 << k;
        }
      ++ret;
      x = mto;
    }
  }
  return ret;
}
struct query {
  int id, lim, ans;
  bool operator<(const query& t) const { return lim < t.lim; }
} qs[maxn];
bool less2(query a, query b) { return a.id < b.id; }
int main() {
  scanf("%d%d%d", &n, &w, &q);
  for (int i = 0; i < n; i++) scanf("%d", &X[i]);
  for (int i = 0; i < q; i++) {
    scanf("%d", &qs[i].lim);
    qs[i].lim = -qs[i].lim;
    qs[i].id = i;
  }
  sort(qs, qs + q);
  init();
  for (int i = 0; i < q; i++) {
    int lim = -qs[i].lim;
    qs[i].ans = calc(lim) - 1;
  }
  sort(qs, qs + q, less2);
  for (int i = 0; i < q; i++) {
    printf("%d\n", qs[i].ans);
  }
  return 0;
}