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;
constexpr int maxSize = 100005, l1 = 17, l2 = 50;
struct Worker {
  inline long long read() const {
    long long x = 0;
    char ch = getNextChar();
    bool positive = 1;
    for (; !isdigit(ch); ch = getNextChar())
      if (ch == '-') positive = 0;
    for (; isdigit(ch); ch = getNextChar()) x = x * 10 + ch - '0';
    return positive ? x : -x;
  }
  inline void write(long long a) {
    if (a < 0) {
      a = -a;
      putchar('-');
    }
    if (a >= 10) write(a / 10);
    putchar('0' + a % 10);
  }
  inline char getNextChar() const {
    static char buf[100000], *p1 = buf, *p2 = buf;
    return p1 == p2 && (static_cast<void>(p2 = (p1 = buf) +
                                               fread(buf, 1, 100000, stdin)),
                        p1 == p2)
               ? EOF
               : *p1++;
  }
  inline unsigned long long getRandomizeValue() const {
    return (static_cast<unsigned long long>(rand() << 30 ^ rand()) << 4 |
            rand() % 4);
  }
} worker;
struct LinkTree {
  int ch[maxSize][2], fa[maxSize], rev[maxSize], sum[maxSize], w[maxSize];
  inline bool get(int x) const { return ch[fa[x]][1] == x; }
  inline int isRoot(int x) const {
    return ch[fa[x]][0] != x && ch[fa[x]][1] != x;
  }
  inline void makeReversion(int x) {
    rev[x] ^= 1;
    swap(ch[x][0], ch[x][1]);
  }
  inline void update(int x) { sum[x] = sum[ch[x][0]] + sum[ch[x][1]] + 1; }
  inline void pushDown(int x) {
    if (rev[x]) {
      if (ch[x][0]) makeReversion(ch[x][0]);
      if (ch[x][1]) makeReversion(ch[x][1]);
      rev[x] = 0;
    }
  }
  inline void push(int x) {
    if (!isRoot(x)) push(fa[x]);
    pushDown(x);
  }
  inline void rotate(int x) {
    const int f = fa[x], g = fa[f], c = get(x);
    if (!isRoot(f)) ch[g][get(f)] = x;
    fa[x] = g;
    ch[f][c] = ch[x][c ^ 1];
    fa[ch[f][c]] = f;
    ch[x][c ^ 1] = f;
    fa[f] = x;
    update(f);
    update(x);
  }
  inline void splay(int x) {
    for (push(x); !isRoot(x); rotate(x)) {
      if (!isRoot(fa[x])) rotate(get(fa[x]) == get(x) ? fa[x] : x);
    }
  }
  inline void access(int x) {
    for (int y = 0; x; y = x, x = fa[x]) {
      splay(x);
      ch[x][1] = y;
      update(x);
    }
  }
  inline void makeRoot(int x) {
    access(x);
    splay(x);
    makeReversion(x);
  }
  inline int findRoot(int x) {
    access(x);
    splay(x);
    while (ch[x][0]) x = ch[x][0];
    return x;
  }
  inline void link(int x, int y) {
    makeRoot(x);
    fa[x] = y;
  }
  inline void split(int x, int y) {
    makeRoot(x);
    access(y);
    splay(y);
  }
  inline void cut(int x, int y) {
    int t = findRoot(x);
    makeReversion(x);
    access(y);
    splay(y);
    fa[x] = ch[y][0] = 0;
    update(y);
    makeRoot(t);
  }
  inline int getFa(int x) {
    access(x);
    splay(x);
    x = ch[x][0];
    pushDown(x);
    while (ch[x][1]) {
      pushDown(x);
      x = ch[x][1];
    }
    return x;
  }
  inline void change(int x, int y) {
    access(x);
    splay(x);
    w[x] = y;
    update(x);
  }
  inline int query(int x) {
    access(x);
    splay(x);
    return sum[x];
  }
} tree;
map<int, int> mapping;
int n, w, q, dq[maxSize], a[maxSize], vis[maxSize], k[maxSize], kk[maxSize],
    f[maxSize][l1], g[maxSize][l1], mx[maxSize][l2 + 1], mn[maxSize][l2 + 1];
vector<int> vec[maxSize];
auto calculate = [](int x) -> int {
  int ans = 0;
  for (int i = 1; i <= n;) {
    ans += tree.query(i) - 1;
    i = tree.findRoot(i);
    if (i > n) return ans;
    int dm = 0, dn = 1e9;
    for (int j = l1 - 1; j >= 0; --j) {
      if (i + (1 << j) <= n + 1 && max(dm, f[i][j]) - min(dn, g[i][j]) <= x) {
        dm = max(dm, f[i][j]);
        dn = min(dn, g[i][j]);
        i += 1 << j;
      }
    }
    ans++;
  }
  return ans;
};
int main() {
  n = worker.read();
  w = worker.read();
  q = worker.read();
  for (int i = 1; i <= n; ++i) a[i] = static_cast<int>(worker.read());
  for (int i = 1; i <= q; ++i)
    kk[i] = k[i] = static_cast<int>(w - worker.read());
  sort(&kk[1], &kk[q + 1]);
  for (int i = 1; i <= n; ++i) {
    mx[i][0] = mn[i][0] = f[i][0] = g[i][0] = a[i];
    for (int j = 1; i + j <= n && j <= l2; ++j) {
      mx[i][j] = max(mx[i][j - 1], a[i + j]);
      mn[i][j] = min(mn[i][j - 1], a[i + j]);
      const int pos = static_cast<int>(
          lower_bound(&kk[1], &kk[q + 1], mx[i][j] - mn[i][j]) - kk);
      vec[pos].push_back(i);
    }
  }
  for (int i = 1; i <= n + 1; ++i) tree.sum[i] = 1;
  for (int i = 1; i <= n; ++i) tree.link(i, i + 1);
  for (int j = 1; j < l1; ++j) {
    for (int i = 1; i + (1 << j) - 1 <= n; ++i) {
      f[i][j] = max(f[i][j - 1], f[i + (1 << (j - 1))][j - 1]);
      g[i][j] = min(g[i][j - 1], g[i + (1 << (j - 1))][j - 1]);
    }
  }
  for (int i = 1; i <= q; ++i) {
    for (auto const &j : vec[i]) {
      if (!vis[j]) {
        vis[j] = 1;
        tree.cut(j, j + dq[j] + 1);
        while (dq[j] < l2 && j + dq[j] < n &&
               mx[j][dq[j] + 1] - mn[j][dq[j] + 1] <= kk[i])
          dq[j]++;
        if (dq[j] != l2) tree.link(j, j + dq[j] + 1);
      }
    }
    for (auto const &j : vec[i]) vis[j] = 0;
    mapping[kk[i]] = calculate(kk[i]);
  }
  for (int i = 1; i <= q; ++i) {
    worker.write(mapping[k[i]] - 1);
    cout << endl;
  }
  return 0;
}