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>
int B = 300, n, W, q, a[1000005], ans[1000005], nxt[1000005],
    maxn[20][1000005 / 5], minn[20][1000005 / 5], LOG[1000005];
std::pair<int, int> Q[1000005];
std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >,
                    std::greater<std::pair<int, int> > >
    Heap;
int read() {
  char c = getchar();
  int ans = 0;
  while (c < '0' || c > '9') c = getchar();
  while (c >= '0' && c <= '9') ans = ans * 10 + c - '0', c = getchar();
  return ans;
}
void Write(int x) {
  if (x < 10)
    putchar(x ^ 48);
  else
    Write(x / 10), putchar((x % 10) ^ 48);
  return;
}
int max(int x, int y) { return x > y ? x : y; }
int min(int x, int y) { return x < y ? x : y; }
int abs(int x) { return x < 0 ? -x : x; }
namespace LCT {
int son[1000005][2], fa[1000005], size[1000005];
bool find_which(int x) { return son[fa[x]][1] == x; }
bool is_root(int x) { return son[fa[x]][0] != x && son[fa[x]][1] != x; }
void pushup(int x) {
  size[x] = size[son[x][0]] + size[son[x][1]] + 1;
  return;
}
void Rotate(int x) {
  int f = fa[x], ff = fa[fa[x]], k = find_which(x);
  son[f][k] = son[x][k ^ 1], fa[son[x][k ^ 1]] = f;
  if (!is_root(f)) son[ff][find_which(f)] = x;
  fa[x] = ff;
  son[x][k ^ 1] = f, fa[f] = x;
  pushup(f), pushup(x);
  return;
}
void Splay(int x) {
  for (register int i = fa[x]; !is_root(x); Rotate(x), i = fa[x])
    if (!is_root(i)) Rotate(find_which(x) == find_which(i) ? i : x);
  return;
}
void Access(int x) {
  for (register int y = 0; x; x = fa[y = x]) Splay(x), son[x][1] = y, pushup(x);
  return;
}
int find_root(int x) {
  Access(x);
  Splay(x);
  while (son[x][0]) x = son[x][0];
  Splay(x);
  return x;
}
void Link(int x, int y) {
  fa[x] = y;
  return;
}
void Cut(int x, int y) {
  Access(x), Splay(x), fa[son[x][0]] = 0, son[x][0] = 0, pushup(x);
  return;
}
}  // namespace LCT
int query_max(int l, int r) {
  int k = LOG[r - l + 1];
  return max(maxn[k][l], maxn[k][r - (1 << k) + 1]);
}
int query_min(int l, int r) {
  int k = LOG[r - l + 1];
  return min(minn[k][l], minn[k][r - (1 << k) + 1]);
}
int query(int l, int r) { return query_max(l, r) - query_min(l, r); }
int main() {
  n = read(), W = read(), q = read();
  for (register int i = 1; i <= n; i++)
    a[i] = read(), maxn[0][i] = minn[0][i] = a[i];
  for (register int i = 2; i <= n; i++) LOG[i] = LOG[i - 1] + ((i & (-i)) == i);
  for (register int i = 1; (1 << i) <= n; i++)
    for (register int j = 1; j + (1 << i) - 1 <= n; j++)
      maxn[i][j] = max(maxn[i - 1][j], maxn[i - 1][j + (1 << i - 1)]),
      minn[i][j] = min(minn[i - 1][j], minn[i - 1][j + (1 << i - 1)]);
  for (register int i = 1; i <= q; i++) Q[i] = std::make_pair(W - read(), i);
  std::sort(Q + 1, Q + 1 + q);
  for (register int i = 1; i <= n + 1; i++) LCT::size[i] = 1;
  for (register int i = 1; i <= n; i++) LCT::Link(i, i + 1);
  for (register int i = 1; i < n; i++)
    Heap.push(std::make_pair(abs(a[i + 1] - a[i]), i)), nxt[i] = i + 1;
  for (register int i = 1; i <= q; i++) {
    while (!Heap.empty() && Heap.top().first <= Q[i].first) {
      int s = Heap.top().second;
      LCT::Cut(s, nxt[s]);
      if (nxt[s] - s + 1 <= B) {
        int ss = query(s, nxt[s]);
        while (nxt[s] <= n && query(s, nxt[s]) == ss) ++nxt[s];
        LCT::Link(s, nxt[s]);
        if (nxt[s] <= n) Heap.push(std::make_pair(query(s, nxt[s]), s));
      }
      Heap.pop();
    }
    int cnt = 0, l = 1;
    while (l <= n) {
      LCT::Access(l), LCT::Splay(l), cnt += LCT::size[l] - 1;
      int r = LCT::find_root(l);
      l = r;
      int ml = l, mr = n;
      while (ml <= mr) {
        int mid = (ml + mr) / 2;
        if (query(l, mid) <= Q[i].first)
          ml = mid + 1;
        else
          mr = mid - 1;
      }
      if (l <= n) cnt++;
      l = ml;
    }
    ans[Q[i].second] = cnt;
  }
  for (register int i = 1; i <= q; i++) Write(ans[i] - 1), putchar(' ');
  return 0;
}