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>
#pragma GCC optimize(2)
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-fwhole-program")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-fstrict-overflow")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-skip-blocks")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("-funsafe-loop-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")
using namespace std;
int ch[100010][2], sz[100010], f[100010], val[100010];
int max(int a, int b) { return (a > b) ? a : b; }
int min(int a, int b) { return (a < b) ? a : b; }
void up(int x) { sz[x] = sz[ch[x][0]] + sz[ch[x][1]] + 1; }
void rotate(int x) {
  int y = f[x], z = f[y], k = (ch[f[x]][1] == x);
  if (!(ch[f[y]][0] != y && ch[f[y]][1] != y)) ch[z][(ch[f[y]][1] == y)] = x;
  ch[y][k] = ch[x][k ^ 1];
  f[ch[x][k ^ 1]] = y;
  ch[x][k ^ 1] = y;
  f[y] = x;
  f[x] = z;
  up(y), up(x);
}
void splay(int x) {
  while (!(ch[f[x]][0] != x && ch[f[x]][1] != x)) {
    if (!(ch[f[f[x]]][0] != f[x] && ch[f[f[x]]][1] != f[x]))
      rotate(((ch[f[f[x]]][1] == f[x]) == (ch[f[x]][1] == x)) ? f[x] : x);
    rotate(x);
  }
}
void access(int x) {
  int p, xx = x;
  for (p = 0; x; p = x, x = f[x]) splay(x), ch[x][1] = p, up(x);
  splay(xx);
}
int find(int x) {
  access(x);
  while (ch[x][0]) x = ch[x][0];
  splay(x);
  return x;
}
void cut(int x, int y) {
  access(x);
  splay(y);
  f[x] = ch[y][1] = 0;
  up(y);
}
void link(int x, int y) {
  access(x);
  f[x] = y;
}
int n, q, a[100010], w, f1[100010][20], f2[100010][20], lp[100010], R[100010];
int ans[100010];
struct qq {
  int id, x;
} t[100010];
bool cmp(qq a, qq b) { return a.x < b.x; }
vector<pair<int, int> > g[100010];
const int p = 300;
int main() {
  scanf("%d%d%d", &n, &w, &q);
  for (int i = 1; i <= n; i++)
    scanf("%d", &a[i]), val[i] = i, f1[i][0] = f2[i][0] = a[i], lp[i] = log2(i),
                        R[i] = min(n, p * ((i - 1) / p + 1));
  for (int j = 1; j < 19; j++)
    for (int i = 1; i + (1 << j) - 1 <= n; i++)
      f1[i][j] = max(f1[i][j - 1], f1[i + (1 << (j - 1))][j - 1]),
      f2[i][j] = min(f2[i][j - 1], f2[i + (1 << (j - 1))][j - 1]);
  for (int i = 1; i <= q; i++)
    scanf("%d", &t[i].x), t[i].x = w - t[i].x, t[i].id = i;
  sort(t + 1, t + q + 1, cmp);
  for (int i = 1; i <= n; i++) {
    int nxt = 1, mx = a[i], mi = a[i];
    for (int j = i; j <= R[i]; j++) {
      mx = max(mx, a[j]);
      mi = min(mi, a[j]);
      int l = nxt, r = q, xx = -1;
      while (l <= r) {
        int mid = (l + r) >> 1;
        if (mx - mi > t[mid].x)
          l = mid + 1;
        else
          xx = mid, r = mid - 1;
      }
      if (xx != -1) g[xx].push_back(make_pair(i, j + 1)), nxt = xx;
    }
  }
  for (int i = 1; i <= q; i++) {
    for (int j = 0; j < g[i].size(); j++) {
      pair<int, int> w = g[i][j];
      int u = w.first, v = w.second;
      if (u + 1 < v) cut(u, v - 1);
      if (v <= R[u]) link(u, v);
    }
    int now = 1, anss = 0;
    while (now <= n) {
      now = find(now);
      anss += sz[now];
      int mx = -1e9, mi = 1e9;
      for (int j = lp[n - now + 1]; j >= 0; j--)
        if (now + (1 << j) - 1 <= n &&
            max(mx, f1[now][j]) - min(mi, f2[now][j]) <= t[i].x)
          mx = max(mx, f1[now][j]), mi = min(mi, f2[now][j]), now += (1 << j);
    }
    ans[t[i].id] = anss;
  }
  for (int i = 1; i <= q; i++) printf("%d\n", ans[i] - 1);
  return 0;
}