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;
char gc() {
  static char buf[1 << 16], *s, *t;
  if (s == t) {
    t = (s = buf) + fread(buf, 1, 1 << 16, stdin);
    if (s == t) return EOF;
  }
  return *s++;
}
int read() {
  char c;
  int w = 1;
  while ((c = gc()) > '9' || c < '0')
    if (c == '-') w = -1;
  int ans = c - '0';
  while ((c = gc()) >= '0' && c <= '9') ans = (ans << 1) + (ans << 3) + c - '0';
  return ans * w;
}
int n, w, q;
const int xx = 1e5 + 5;
int a[xx], minn[xx][21], maxx[xx][21];
int Log[xx];
int gmax(int l, int r) {
  int k = Log[(r - l + 1)];
  return max(maxx[l][k], maxx[r - (1 << k) + 1][k]);
}
int gmin(int l, int r) {
  int k = Log[(r - l + 1)];
  return min(minn[l][k], minn[r - (1 << k) + 1][k]);
}
int size[xx], f[xx], c[xx][2];
void ph(int k) { size[k] = size[c[k][0]] + size[c[k][1]] + 1; }
bool nroot(int x) { return c[f[x]][0] == x || c[f[x]][1] == x; }
void rotate(int x) {
  int y = f[x], z = f[y], s = (c[y][1] == x);
  c[y][s] = c[x][!s];
  f[c[x][!s]] = y;
  f[x] = z;
  if (nroot(y)) c[z][c[z][1] == y] = x;
  f[c[x][!s] = y] = x;
  ph(y), ph(x);
}
void splay(int x) {
  while (nroot(x)) {
    int y = f[x], z = f[y];
    if (nroot(y)) {
      if ((c[z][1] == y) == (c[y][1] == x))
        rotate(y);
      else
        rotate(x);
    }
    rotate(x);
  }
}
void access(int x) {
  for (int y = 0; x; x = f[y = x]) {
    splay(x);
    c[x][1] = y;
    ph(x);
  }
}
void link(int x, int y) {
  access(x);
  splay(x);
  f[x] = y;
}
void cut(int x, int y) {
  access(x), splay(y);
  c[y][1] = f[x] = 0;
  ph(y);
}
struct qu {
  int id, k;
  bool operator<(const qu& w) const { return k < w.k; }
} s[xx];
int ans[xx];
int find(int x, int y) {
  int l = x, r = n, ans = 0;
  while (l <= r) {
    int mid = l + r >> 1;
    if (gmax(x, mid) - gmin(x, mid) <= y)
      ans = mid, l = mid + 1;
    else
      r = mid - 1;
  }
  return ans;
}
struct nod {
  int s, x, y;
  bool operator<(const nod& w) const { return s < w.s; }
};
multiset<nod> v;
signed main() {
  Log[0] = -1;
  for (int i = 1; i <= 100000; i++) Log[i] = Log[i - 1] + (i == (i & -i));
  n = read();
  w = read();
  q = read();
  memset(minn, 0x3f, sizeof(minn));
  memset(maxx, -0x3f, sizeof(maxx));
  for (int i = 1; i <= n; i++)
    a[i] = read(), minn[i][0] = a[i], maxx[i][0] = a[i], size[i] = 1;
  for (int j = 1; j <= 20; j++) {
    for (int i = 1; i <= n; i++) {
      if (i + ((1 << j - 1)) > n)
        minn[i][j] = minn[i][j - 1], maxx[i][j] = maxx[i][j - 1];
      else
        minn[i][j] = min(minn[i][j - 1], minn[i + (1 << j - 1)][j - 1]),
        maxx[i][j] = max(maxx[i][j - 1], maxx[i + (1 << j - 1)][j - 1]);
    }
  }
  for (int i = 1; i <= q; i++) s[i].k = w - read(), s[i].id = i;
  sort(s + 1, s + q + 1);
  for (int i = 1; i < n; i++)
    link(i, i + 1),
        v.insert((nod){max(a[i + 1], a[i]) - min(a[i + 1], a[i]), i, i + 1});
  int B = 100;
  for (int i = 1; i <= q; i++) {
    int a = s[i].k;
    while (v.size() && (*v.begin()).s <= a) {
      nod u = *v.begin();
      v.erase(v.begin());
      cut(u.x, u.y);
      int t = find(u.x, a);
      t++;
      if (t == n + 1 || t - u.x > B) continue;
      link(u.x, t);
      v.insert((nod){gmax(u.x, t) - gmin(u.x, t), u.x, t});
    }
    int now = 1, bs = 0;
    while (now != n + 1) {
      access(now);
      splay(now);
      bs += size[now] - 1;
      while (c[now][0]) now = c[now][0];
      now = find(now, a) + 1;
      bs++;
    }
    ans[s[i].id] = bs;
  }
  for (int i = 1; i <= q; i++) cout << ans[i] - 1 << "\n";
  return 0;
}