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;
const int N = 400005;
struct TNode {
  int ch[2], f, sz;
  bool r;
};
TNode t[N];
inline bool isroot(int pos) {
  return t[t[pos].f].ch[0] != pos && t[t[pos].f].ch[1] != pos;
}
inline void pushup(int pos) {
  t[pos].sz = t[t[pos].ch[0]].sz + 1 + t[t[pos].ch[1]].sz;
}
inline void pushdown(int pos) {
  if (t[pos].r) {
    t[pos].r = 0;
    t[t[pos].ch[0]].r ^= 1;
    t[t[pos].ch[1]].r ^= 1;
    swap(t[pos].ch[0], t[pos].ch[1]);
  }
}
void rotate(int pos) {
  int y = t[pos].f, z = t[y].f, k = t[y].ch[1] == pos, w = t[pos].ch[k ^ 1];
  if (!isroot(y)) t[z].ch[t[z].ch[1] == y] = pos;
  t[pos].f = z;
  t[pos].ch[!k] = y;
  t[y].ch[k] = w;
  t[w].f = y;
  t[y].f = pos;
  pushup(y);
  pushup(pos);
}
void splay(int pos) {
  int ptr = 0, tmp = pos;
  static int stk[N];
  stk[ptr++] = tmp;
  while (!isroot(tmp)) stk[ptr++] = tmp = t[tmp].f;
  while (ptr--) pushdown(stk[ptr]);
  while (!isroot(pos)) {
    int y = t[pos].f, z = t[y].f;
    if (!isroot(y)) rotate((t[y].ch[0] == pos) ^ (t[z].ch[0] == y) ? pos : y);
    rotate(pos);
  }
}
void access(int pos) {
  for (int last = 0; pos; pos = t[last = pos].f)
    splay(pos), t[pos].ch[1] = last, pushup(pos);
}
int findroot(int pos) {
  access(pos);
  splay(pos);
  pushdown(pos);
  while (t[pos].ch[0]) pushdown(pos = t[pos].ch[0]);
  splay(pos);
  return pos;
}
inline void link(int x, int y) {
  access(x);
  t[x].f = y;
}
inline void cut(int x, int y) {
  access(x);
  splay(y);
  t[y].ch[1] = t[x].f = 0, pushup(x);
}
int lg[N], mn[N][20], mx[N][20], n, w, qq, a[N], ls[N], ans[N], nxt[N], vis[N];
vector<int> v[N];
inline int gmn(int l, int r) {
  int k = lg[r - l + 1];
  return min(mn[l][k], mn[r - (1 << k) + 1][k]);
}
inline int gmx(int l, int r) {
  int k = lg[r - l + 1];
  return max(mx[l][k], mx[r - (1 << k) + 1][k]);
}
inline int calc(int l, int r) { return gmx(l, r) - gmn(l, r); }
struct Query {
  int v, id;
} q[N];
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() {
  ios::sync_with_stdio(false);
  cin >> n >> w >> qq;
  int blk = sqrt(n);
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= n; i++) mn[i][0] = mx[i][0] = a[i], t[i].sz = 1;
  lg[1] = 0;
  for (int i = 2; i <= n; i++) lg[i] = lg[i >> 1] + 1;
  mn[n + 1][0] = INT_MIN / 3;
  mx[n + 1][0] = INT_MAX / 3;
  for (int j = 1; j <= 17; j++)
    for (int i = 1; i <= n + 1; i++)
      mn[i][j] = min(mn[i][j - 1], mn[i + (1 << (j - 1))][j - 1]),
      mx[i][j] = max(mx[i][j - 1], mx[i + (1 << (j - 1))][j - 1]);
  for (int i = 1; i <= qq; i++) cin >> q[i].v, q[i].v = w - q[i].v, q[i].id = i;
  sort(q + 1, q + 1 + qq,
       [](const Query &a, const Query &b) { return a.v < b.v; });
  for (int i = 1; i <= qq; i++) ls[i] = q[i].v;
  for (int i = 1; i <= n; i++) nxt[i] = i, v[1].push_back(i);
  for (int i = 1; i <= qq; i++) {
    for (auto &pos : v[i]) {
      int j = nxt[pos] + 1;
      cut(pos, nxt[pos]);
      while (j <= n && j - pos <= blk && calc(pos, j) <= q[i].v) ++j;
      if (j - pos > blk)
        vis[pos] = 1;
      else {
        nxt[pos] = j;
        link(pos, nxt[pos]);
        int tt = lower_bound(ls + 1, ls + qq + 1, calc(pos, nxt[pos])) - ls;
        v[tt].push_back(pos);
      }
    }
    int gg = 0;
    for (int j = 1; j <= n; j = gnxt(j, q[i].v)) {
      if (!vis[j]) access(j), splay(j), gg += t[j].sz - 1, j = findroot(j);
      if (j > n)
        break;
      else
        ++gg;
    }
    ans[q[i].id] = gg - 1;
  }
  for (int i = 1; i <= qq; i++) cout << ans[i] << endl;
  return 0;
}