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 = 1e5 + 10;
void cmax(int& x, int y) {
  if (x < y) {
    x = y;
  }
}
int n, w, q, block, value[N], rmq_max[N][20], rmq_min[N][20], logv[N], ch[N][2],
    size[N], pa[N], go[N], ans[N];
vector<pair<int, int> > que;
vector<int> changed[N];
void rmq_init() {
  for (int i = 2; i <= n; ++i) {
    logv[i] = logv[i >> 1] + 1;
  }
  for (int j = 1; (1 << j) <= n; ++j) {
    for (int i = 1; i + (1 << j) - 1 <= n; ++i) {
      rmq_max[i][j] = max(rmq_max[i][j - 1], rmq_max[i + (1 << j - 1)][j - 1]);
      rmq_min[i][j] = min(rmq_min[i][j - 1], rmq_min[i + (1 << j - 1)][j - 1]);
    }
  }
}
int diff(int l, int r) {
  int k = logv[r - l + 1];
  int maxv = max(rmq_max[l][k], rmq_max[r - (1 << k) + 1][k]);
  int minv = min(rmq_min[l][k], rmq_min[r - (1 << k) + 1][k]);
  return maxv - minv;
}
bool is_root(int o) {
  int p = pa[o];
  return ch[p][0] ^ o && ch[p][1] ^ o;
}
int side(int o, int p) { return ch[p][1] == o; }
void push_up(int o) { size[o] = size[ch[o][0]] + size[ch[o][1]] + 1; }
void rotate(int o) {
  int p = pa[o], to = side(o, p), topa = side(p, pa[p]), ano_ch = ch[o][to ^ 1];
  pa[o] = pa[p];
  if (!is_root(p)) {
    ch[pa[p]][topa] = o;
  }
  pa[ano_ch] = p;
  ch[p][to] = ano_ch;
  pa[p] = o;
  ch[o][to ^ 1] = p;
  push_up(p);
  push_up(o);
}
void splay(int o) {
  while (!is_root(o)) {
    int p = pa[o];
    if (!is_root(p)) {
      if (side(o, p) == side(p, pa[p])) {
        rotate(p);
      }
    }
    rotate(o);
  }
}
void access(int o) {
  for (int p = 0; o; p = o, o = pa[o]) {
    splay(o);
    ch[o][1] = p;
    push_up(o);
  }
}
void link(int u, int v) {
  access(u);
  splay(u);
  pa[u] = v;
}
void cut(int u, int v) {
  access(u);
  splay(u);
  int l_ch = ch[u][0];
  ch[u][0] = pa[l_ch] = 0;
  push_up(u);
}
pair<int, int> query(int o) {
  access(o);
  splay(o);
  int result = 0, from = o;
  for (o = ch[o][0]; o; from = o, o = ch[o][0]) {
    result += 1 + size[ch[o][1]];
  }
  return pair<int, int>(result, from);
}
int main() {
  scanf("%d%d%d", &n, &w, &q);
  block = (int)sqrt(n);
  for (int i = 1; i <= n; ++i) {
    scanf("%d", &value[i]);
    rmq_max[i][0] = rmq_min[i][0] = value[i];
  }
  rmq_init();
  for (int i = 1; i <= q; ++i) {
    int k;
    scanf("%d", &k);
    que.emplace_back(w - k, i);
  }
  sort(que.begin(), que.end());
  size[n + 1] = 1;
  for (int i = 1; i <= n; ++i) {
    go[i] = i + 1;
    size[i] = 1;
    link(i, i + 1);
    changed[0].push_back(i);
  }
  for (int i = 0; i < que.size(); ++i) {
    for (auto v : changed[i]) {
      cut(v, go[v]);
      if (go[v] - v <= block) {
        for (; go[v] <= n && diff(v, go[v]) <= que[i].first; ++go[v])
          ;
        int pos = lower_bound(que.begin(), que.end(),
                              pair<int, int>(diff(v, go[v]), 0)) -
                  que.begin();
        cmax(pos, i + 1);
        changed[pos].push_back(v);
        if (go[v] - v <= block) {
          link(v, go[v]);
        }
      }
    }
    int o = 1, result = 0;
    while (o ^ n + 1) {
      pair<int, int> lct_s = query(o);
      if (!lct_s.first) {
        ++result;
        int l = o, r = n;
        while (l ^ r) {
          int mid = (l + r >> 1) + 1;
          if (diff(o, mid) <= que[i].first) {
            l = mid;
          } else {
            r = mid - 1;
          }
        }
        o = l + 1;
      } else {
        result += lct_s.first;
        o = lct_s.second;
      }
    }
    ans[que[i].second] = --result;
  }
  for (int i = 1; i <= q; ++i) {
    printf("%d\n", ans[i]);
  }
  return 0;
}