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 inf = 1e9;
const long long Inf = 1e18;
const int N = 1e5 + 10;
const int mod = 0;
int gi() {
  int x = 0, o = 1;
  char ch = getchar();
  while ((ch < '0' || ch > '9') && ch != '-') ch = getchar();
  if (ch == '-') o = -1, ch = getchar();
  while (ch >= '0' && ch <= '9') x = x * 10 + ch - '0', ch = getchar();
  return x * o;
}
template <typename T>
bool chkmax(T &a, T b) {
  return a < b ? a = b, 1 : 0;
};
template <typename T>
bool chkmin(T &a, T b) {
  return a > b ? a = b, 1 : 0;
};
int add(int a, int b) { return a + b >= mod ? a + b - mod : a + b; }
int sub(int a, int b) { return a - b < 0 ? a - b + mod : a - b; }
void inc(int &a, int b) { a = (a + b >= mod ? a + b - mod : a + b); }
void dec(int &a, int b) { a = (a - b < 0 ? a - b + mod : a - b); }
int n, w, m, a[N], ans[N], lg2[N], st_mn[20][N], st_mx[20][N], nxt[N], jump[N],
    cnt[N], mn[N], mx[N], A, B, st[N], top = 0, tmp[N];
pair<int, int> q[N];
bool vis[N];
priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>>
    Q;
int query_mn(int l, int r) {
  int k = lg2[r - l + 1];
  return min(st_mn[k][l], st_mn[k][r - (1 << k) + 1]);
}
int query_mx(int l, int r) {
  int k = lg2[r - l + 1];
  return max(st_mx[k][l], st_mx[k][r - (1 << k) + 1]);
}
void update(int x, int lim) {
  while (nxt[x] <= n && nxt[x] - x <= B && mx[x] - mn[x] <= lim) {
    ++nxt[x];
    if (nxt[x] <= n) chkmax(mx[x], a[nxt[x]]), chkmin(mn[x], a[nxt[x]]);
  }
  if (nxt[x] <= n && nxt[x] - x <= A) Q.push(make_pair(mx[x] - mn[x], x));
  jump[x] = x;
  cnt[x] = 0;
  top = 0;
  st[++top] = jump[x];
  while (jump[x] <= n && nxt[jump[x]] - x <= A)
    jump[x] = nxt[jump[x]], ++cnt[x], st[++top] = jump[x];
  tmp[x] = top;
  vis[x] = 1;
  for (int i = x - 1; i >= x - A && i >= 1; i--) {
    if (vis[nxt[i]]) {
      while (st[top] - i > A) --top;
      jump[i] = st[top];
      cnt[i] = cnt[nxt[i]] + 1 + top - tmp[nxt[i]];
      tmp[i] = top;
      vis[i] = 1;
    }
  }
  for (int i = x; i >= x - A && i >= 1; i--) vis[i] = 0;
}
int query(int lim) {
  while (!Q.empty() && Q.top().first <= lim)
    update(Q.top().second, lim), Q.pop();
  int x = 1, ret = 0;
  while (x <= n) {
    if (nxt[x] - x <= A)
      ret += cnt[x], x = jump[x];
    else {
      while (nxt[x] <= n && nxt[x] - x <= B && mx[x] - mn[x] <= lim) {
        ++nxt[x];
        if (nxt[x] <= n) chkmax(mx[x], a[nxt[x]]), chkmin(mn[x], a[nxt[x]]);
      }
      if (nxt[x] - x <= B)
        ret++, x = nxt[x];
      else {
        int l = x + 1, r = n, pos = x + 1;
        while (l <= r) {
          int mid = (l + r) >> 1;
          if (query_mx(x, mid) - query_mn(x, mid) <= lim)
            pos = mid + 1, l = mid + 1;
          else
            r = mid - 1;
        }
        ret++, x = pos;
      }
    }
  }
  return ret;
}
int main() {
  cin >> n >> w >> m;
  A = pow(n, 1.0 / 3), B = pow(n, 2.0 / 3);
  for (int i = 1; i <= n; i++) a[i] = gi();
  for (int i = 1; i <= m; i++) q[i].first = w - gi(), q[i].second = i;
  sort(q + 1, q + m + 1);
  for (int i = 2; i <= n; i++) lg2[i] = lg2[i >> 1] + 1;
  for (int i = 1; i <= n; i++) st_mn[0][i] = st_mx[0][i] = a[i];
  for (int j = 1; (1 << j) <= n; j++)
    for (int i = 1; i + (1 << j) - 1 <= n; i++) {
      st_mn[j][i] = min(st_mn[j - 1][i], st_mn[j - 1][i + (1 << (j - 1))]);
      st_mx[j][i] = max(st_mx[j - 1][i], st_mx[j - 1][i + (1 << (j - 1))]);
    }
  for (int i = 1; i <= n; i++) {
    nxt[i] = i + 1, jump[i] = min(n + 1, i + A), cnt[i] = jump[i] - i;
    mn[i] = a[i];
    if (i + 1 <= n) chkmin(mn[i], a[i + 1]);
    mx[i] = a[i];
    if (i + 1 <= n) chkmax(mx[i], a[i + 1]);
    Q.push(make_pair(mx[i] - mn[i], i));
  }
  for (int i = 1; i <= m; i++) ans[q[i].second] = query(q[i].first);
  for (int i = 1; i <= m; i++) printf("%d\n", ans[i] - 1);
  return 0;
}