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("Ofast")
#pragma GCC optimize(3)
using namespace std;
namespace ywy {
inline int get() {
  int n = 0;
  char c;
  while ((c = getchar()) || 23333) {
    if (c >= '0' && c <= '9') break;
    if (c == '-') goto s;
  }
  n = c - '0';
  while ((c = getchar()) || 23333) {
    if (c >= '0' && c <= '9')
      n = n * 10 + c - '0';
    else
      return (n);
  }
s:
  while ((c = getchar()) || 23333) {
    if (c >= '0' && c <= '9')
      n = n * 10 - c + '0';
    else
      return (n);
  }
}
int ints[111111], ch[111111][2], fa[111111], size[111111], frt[111111];
inline void up(int tree) {
  size[tree] = size[ch[tree][0]] + size[ch[tree][1]] + 1;
  if (!ch[tree][0])
    frt[tree] = tree;
  else
    frt[tree] = frt[ch[tree][0]];
}
inline void xuan(int me) {
  int tree = fa[me], cjr = fa[tree], op = (me == ch[fa[me]][1]),
      ls = ch[me][op ^ 1];
  fa[ls] = tree;
  ch[tree][op] = ls;
  ch[me][op ^ 1] = tree;
  if (!(tree != ch[fa[tree]][1] && tree != ch[fa[tree]][0]))
    ch[cjr][(tree == ch[fa[tree]][1])] = me;
  fa[me] = cjr;
  fa[tree] = me;
  up(tree);
  up(me);
}
inline void splay(int tree) {
  while (!(tree != ch[fa[tree]][1] && tree != ch[fa[tree]][0])) {
    int cjr = fa[tree];
    if (!(cjr != ch[fa[cjr]][1] && cjr != ch[fa[cjr]][0]))
      xuan(((cjr == ch[fa[cjr]][1]) == (tree == ch[fa[tree]][1])) ? cjr : tree);
    xuan(tree);
  }
}
inline void access(int tree) {
  splay(tree);
  ch[tree][1] = 0;
  up(tree);
  while (fa[tree]) {
    int cjr = fa[tree];
    splay(cjr);
    ch[cjr][1] = tree;
    up(cjr);
    splay(tree);
  }
}
int stmax[17][111111], stmin[17][111111], lg[111111];
int findroot(int tree) {
  access(tree);
  splay(tree);
  tree = frt[tree];
  return (tree);
}
typedef struct _b {
  int pos;
  int yuan;
  int val;
  friend bool operator<(const _b &a, const _b &b) { return (a.val > b.val); }
} bian;
vector<bian> vec[300001];
inline int qmax(int l, int r) {
  int g = lg[r - l + 1];
  return (max(stmax[g][l], stmax[g][r - (1 << g) + 1]));
}
inline int qmin(int l, int r) {
  int g = lg[r - l + 1];
  return (min(stmin[g][l], stmin[g][r - (1 << g) + 1]));
}
typedef struct _n {
  int id;
  int val;
  friend bool operator<(const _n &a, const _n &b) { return (a.val < b.val); }
} node;
node memchi[1000001];
int anss[111111];
void ywymain() {
  int n = get(), w = get(), q = get();
  for (register int i = 1; i <= n; i++) ints[i] = get();
  for (register int i = 1; i <= q; i++) {
    memchi[i].id = i;
    memchi[i].val = w - get();
  }
  sort(memchi + 1, memchi + 1 + q);
  lg[0] = -1;
  for (register int i = 1; i <= n; i++) {
    lg[i] = lg[i - 1] + (i == (i & -i));
    stmax[0][i] = stmin[0][i] = ints[i];
    if (i != n) {
      bian cjr;
      cjr.pos = i;
      cjr.yuan = i + 1;
      cjr.val = max(ints[i], ints[i + 1]) - min(ints[i], ints[i + 1]);
      vec[1].push_back(cjr);
    }
    size[i] = 1;
    fa[i] = i + 1;
    frt[i] = i;
  }
  size[n + 1] = 1;
  frt[n + 1] = n + 1;
  for (register int i = 1; i <= lg[n]; i++) {
    for (register int j = 1; j + (1 << i) - 1 <= n; j++) {
      stmax[i][j] = max(stmax[i - 1][j], stmax[i - 1][j + (1 << (i - 1))]);
      stmin[i][j] = min(stmin[i - 1][j], stmin[i - 1][j + (1 << (i - 1))]);
    }
  }
  anss[0] = n;
  for (register int i = 1; i <= q; i++) {
    for (register int j = 0; j < vec[i].size(); j++) {
      int she = vec[i][j].yuan;
      int me = vec[i][j].pos;
      access(me);
      splay(she);
      ch[she][1] = fa[me] = 0;
      up(she);
      int ans = she;
      while (ans <= n && qmax(me, ans) - qmin(me, ans) <= memchi[i].val &&
             ans - me <= 250)
        ans++;
      if (ans == n + 1) {
        splay(me);
        splay(ans);
        fa[me] = ans;
        continue;
      }
      if (ans - me <= 250) {
        splay(me);
        splay(ans);
        fa[me] = ans;
        if (ans != n + 1) {
          bian cjr;
          cjr.yuan = ans;
          cjr.pos = me;
          cjr.val = qmax(me, ans) - qmin(me, ans);
          int ans = -1, l = i + 1, r = q;
          while (l <= r) {
            int mid = (l + r) >> 1;
            if (memchi[mid].val >= cjr.val)
              ans = mid, r = mid - 1;
            else
              l = mid + 1;
          }
          if (ans != -1) vec[ans].push_back(cjr);
        }
      }
    }
    int tot = 0, cur = 1;
    while (1) {
      int cjr = findroot(cur);
      access(cur);
      splay(cur);
      tot += (size[cur] - 1);
      if (cjr == n + 1) break;
      cur = cjr;
      int ans = cur, l = cur, r = n;
      while (l <= r) {
        int mid = (l + r) >> 1;
        if (qmax(cur, mid) - qmin(cur, mid) <= memchi[i].val)
          ans = mid, l = mid + 1;
        else
          r = mid - 1;
      }
      tot++;
      if (ans == n) break;
      cur = ans + 1;
    }
    anss[memchi[i].id] = tot - 1;
  }
  for (register int i = 1; i <= q; i++) printf("%d\n", anss[i]);
}
}  // namespace ywy
int main() {
  ywy::ywymain();
  return (0);
}