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;
int ch[400050][2], size[400050], rev[400050], fa[400050];
void update(int x) { size[x] = size[ch[x][0]] + size[ch[x][1]] + 1; }
void pushr(int x) { swap(ch[x][0], ch[x][1]), rev[x] ^= 1; }
void pushdown(int x) {
  if (rev[x]) {
    if (ch[x][0]) pushr(ch[x][0]);
    if (ch[x][1]) pushr(ch[x][1]);
    rev[x] = 0;
  }
}
int nroot(int x) { return ch[fa[x]][0] == x || ch[fa[x]][1] == x; }
int get(int x) { return ch[fa[x]][1] == x; }
void rotate(int x) {
  int f = fa[x], gf = fa[f], k = get(x);
  if (nroot(f)) ch[gf][get(f)] = x;
  fa[x] = gf;
  if (ch[x][!k]) fa[ch[x][!k]] = f;
  ch[f][k] = ch[x][!k];
  ch[x][!k] = f, fa[f] = x;
  update(f), update(x);
}
int sta[400050];
void splay(int x) {
  int now = x, top = 0;
  sta[++top] = now;
  while (nroot(now)) sta[++top] = now = fa[now];
  while (top) pushdown(sta[top--]);
  while (nroot(x)) {
    int f = fa[x];
    if (nroot(f)) rotate(get(x) == get(f) ? f : x);
    rotate(x);
  }
  update(x);
}
void access(int x) {
  for (int y = 0; x; x = fa[y = x]) splay(x), ch[x][1] = y, pushdown(x);
}
int getroot(int x) {
  access(x), splay(x);
  for (; ch[x][0];) pushdown(x), x = ch[x][0];
  splay(x);
  return x;
}
void link(int x, int y) {
  access(x);
  fa[x] = y;
}
void cut(int x, int y) {
  access(x), splay(y);
  fa[x] = ch[y][1] = 0;
  update(y);
}
int logg[400050], mi[400050][22], ma[400050][22], n, w, qq, a[400050],
    ls[400050], ANS[400050], nxt[400050], vis[400050];
vector<int> ha[400050];
int getmi(int l, int r) {
  int k = logg[r - l + 1];
  return min(mi[l][k], mi[r - (1 << k) + 1][k]);
}
int getma(int l, int r) {
  int k = logg[r - l + 1];
  return max(ma[l][k], ma[r - (1 << k) + 1][k]);
}
int calc(int l, int r) { return getma(l, r) - getmi(l, r); }
struct Q {
  int v, id;
} q[400050];
int cmp(Q x, Q y) { return x.v < y.v; }
int gnxt(int x, int k) {
  int l = x, r = n + 1;
  while (l + 1 < r) {
    int mid = (l + r) >> 1;
    if (calc(x, mid) > k)
      r = mid;
    else
      l = mid;
  }
  return r;
}
int main() {
  scanf("%d%d%d", &n, &w, &qq);
  int blo = sqrt(n);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  for (int i = 1; i <= n; i++) mi[i][0] = ma[i][0] = a[i], size[i] = 1;
  logg[1] = 0;
  for (int i = 2; i <= n; i++) logg[i] = logg[i >> 1] + 1;
  mi[n + 1][0] = -1e9, ma[n + 1][0] = 1e9;
  for (int j = 1; j <= 17; j++)
    for (int i = 1; i <= n + 1; i++)
      mi[i][j] = min(mi[i][j - 1], mi[i + (1 << (j - 1))][j - 1]),
      ma[i][j] = max(ma[i][j - 1], ma[i + (1 << (j - 1))][j - 1]);
  for (int i = 1; i <= qq; i++) {
    scanf("%d", &q[i].v);
    q[i].v = w - q[i].v;
    q[i].id = i;
  }
  sort(q + 1, q + 1 + qq, cmp);
  for (int i = 1; i <= qq; i++) ls[i] = q[i].v;
  for (int i = 1; i <= n; i++) nxt[i] = i, ha[1].push_back(i);
  for (int i = 1; i <= qq; i++) {
    for (int ii = 0; ii < ha[i].size(); ii++) {
      int pos = ha[i][ii], j = nxt[pos] + 1;
      cut(pos, nxt[pos]);
      while (j <= n && j - pos <= blo && calc(pos, j) <= q[i].v) j++;
      if (j - pos > blo)
        vis[pos] = 1;
      else {
        nxt[pos] = j;
        link(pos, nxt[pos]);
        int jj = lower_bound(ls + 1, ls + 1 + qq, calc(pos, nxt[pos])) - ls;
        ha[jj].push_back(pos);
      }
    }
    int gs = 0;
    for (int j = 1; j <= n; j = gnxt(j, q[i].v)) {
      if (!vis[j]) access(j), splay(j), gs += size[j] - 1, j = getroot(j);
      if (j > n) break;
      gs++;
    }
    ANS[q[i].id] = gs - 1;
  }
  for (int i = 1; i <= qq; i++) printf("%d\n", ANS[i]);
  return 0;
}