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;
namespace LCT {
int ch[100005][2], fa[100005];
int size[100005];
inline bool isroot(int o) { return (ch[fa[o]][0] != o) && (ch[fa[o]][1] != o); }
inline void pushup(int o) { size[o] = size[ch[o][0]] + size[ch[o][1]] + 1; }
void rotate(int x) {
  int y = fa[x], z = fa[y], d = (ch[y][1] == x);
  if (!isroot(y)) {
    if (ch[z][0] == y)
      ch[z][0] = x;
    else
      ch[z][1] = x;
  }
  fa[x] = z;
  fa[y] = x;
  fa[ch[x][d ^ 1]] = y;
  ch[y][d] = ch[x][d ^ 1];
  ch[x][d ^ 1] = y;
  pushup(y);
}
void splay(int x) {
  while (!isroot(x)) {
    int y = fa[x], z = fa[y];
    if (!isroot(y)) {
      if ((ch[y][0] == x) ^ (ch[z][0] == y))
        rotate(x);
      else
        rotate(y);
    }
    rotate(x);
  }
  pushup(x);
}
void access(int x) {
  int y = 0;
  while (x) {
    splay(x);
    ch[x][1] = y;
    pushup(x);
    y = x;
    x = fa[x];
  }
}
void link(int x, int y) {
  access(x);
  splay(x);
  fa[x] = y;
}
void cut(int x) {
  access(x);
  splay(x);
  fa[ch[x][0]] = 0;
  ch[x][0] = 0;
  pushup(x);
}
int findroot(int x) {
  access(x);
  splay(x);
  while (ch[x][0]) x = ch[x][0];
  splay(x);
  return x;
}
pair<int, int> query(int x) {
  x = findroot(x);
  return pair<int, int>(x, size[x]);
}
}  // namespace LCT
int num[100005], r[100005];
int cmin[100005], cmax[100005];
namespace ST {
int minn[17][100005], maxn[17][100005];
void pre(int n) {
  for (int i = 1; i <= n; i++)
    minn[0][i] = maxn[0][i] = cmin[i] = cmax[i] = num[i];
  for (int i = 1; i < 17; i++)
    for (int j = 1; j <= n - (1 << i) + 1; j++) {
      minn[i][j] = min(minn[i - 1][j], minn[i - 1][j + (1 << (i - 1))]);
      maxn[i][j] = max(maxn[i - 1][j], maxn[i - 1][j + (1 << (i - 1))]);
    }
}
int jump(int x, int d, int n) {
  for (int j = 16; j >= 0; j--)
    if (r[x] + (1 << j) <= n &&
        max(cmax[x], maxn[j][r[x] + 1]) - min(cmin[x], minn[j][r[x] + 1]) <=
            d) {
      cmin[x] = min(cmin[x], minn[j][r[x] + 1]);
      cmax[x] = max(cmax[x], maxn[j][r[x] + 1]);
      r[x] += (1 << j);
    }
  return r[x];
}
}  // namespace ST
const int SIZE = 50;
pair<int, int> a[5500005];
int cnt, rx = 1;
void update(int d, int n) {
  while (rx <= cnt && a[rx].first <= d) {
    int x = a[rx++].second;
    r[x]++;
    cmin[x] = min(cmin[x], num[r[x]]);
    cmax[x] = max(cmax[x], num[r[x]]);
    LCT::cut(x);
    if (r[x] <= n && r[x] - x <= SIZE) LCT::link(x, r[x] + 1);
  }
}
int query(int d, int n) {
  int x = 1, ans = 0;
  while (x <= n)
    if (LCT::fa[x]) {
      pair<int, int> t = LCT::query(x);
      ans += t.second - 1;
      x = t.first;
    } else {
      x = ST::jump(x, d, n) + 1;
      ans++;
    }
  return ans - 1;
}
pair<int, int> q[100005];
int ans[100005];
int main() {
  int n, m, k;
  scanf("%d%d%d", &n, &m, &k);
  for (int i = 1; i <= n; i++) scanf("%d", &num[i]);
  for (int i = 1; i <= n; i++) {
    r[i] = i;
    LCT::size[i] = 1;
    LCT::link(i, i + 1);
  }
  ST::pre(n);
  for (int i = 1; i <= n; i++) {
    int minn = num[i], maxn = num[i];
    for (int j = 1; j <= SIZE + 1 && i + j <= n; j++) {
      minn = min(minn, num[i + j]);
      maxn = max(maxn, num[i + j]);
      a[++cnt] = pair<int, int>(maxn - minn, i);
    }
  }
  sort(a + 1, a + cnt + 1);
  for (int i = 1; i <= k; i++) {
    int x;
    scanf("%d", &x);
    q[i] = pair<int, int>(m - x, i);
  }
  sort(q + 1, q + k + 1);
  for (int i = 1; i <= k; i++) {
    update(q[i].first, n);
    ans[q[i].second] = query(q[i].first, n);
  }
  for (int i = 1; i <= k; i++) printf("%d\n", ans[i]);
  return 0;
}