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;
template <typename T>
void chkmax(T &x, T y) {
  x = x > y ? x : y;
}
template <typename T>
void chkmin(T &x, T y) {
  x = x > y ? y : x;
}
template <typename T>
void update(T &x, T y, T mod) {
  x = x + y > mod ? x + y - mod : x + y;
}
const int INF = (1ll << 30);
template <typename T>
void read(T &x) {
  x = 0;
  bool f = 1;
  char ch;
  do {
    ch = getchar();
    if (ch == '-') f = 0;
  } while (ch > '9' || ch < '0');
  do {
    x = x * 10 + ch - '0';
    ch = getchar();
  } while (ch >= '0' && ch <= '9');
  x = f ? x : -x;
}
template <typename T>
void write(T x) {
  if (x < 0) x = ~x + 1, putchar('-');
  if (x > 9) write(x / 10);
  putchar(x % 10 + '0');
}
const int N = 1e5 + 7;
const int M = 20 + 5;
struct Query {
  int x, ans, pos;
} q[N];
struct Node {
  int pos, nxt, val;
  Node(int P = 0, int N = 0, int V = 0) {
    pos = P;
    nxt = N;
    val = V;
  }
  bool operator<(const Node &rhs) const { return val < rhs.val; }
};
vector<Node> v[N];
struct Splay {
  int sz, fa, mx, ch[2];
  bool rev;
} t[N];
inline bool ntroot(int x) {
  return t[t[x].fa].ch[0] == x || t[t[x].fa].ch[1] == x;
}
inline void pushup(int p) {
  t[p].sz = t[(t[p].ch[0])].sz + t[(t[p].ch[1])].sz + 1;
  t[p].mx = max(max(t[(t[p].ch[0])].mx, t[(t[p].ch[1])].mx), t[p].mx);
}
inline void pushdown(int p) {
  if (t[p].rev) {
    t[p].rev ^= 1;
    t[(t[p].ch[0])].rev ^= 1;
    t[(t[p].ch[1])].rev ^= 1;
    swap((t[p].ch[0]), (t[p].ch[1]));
  }
}
inline void pushall(int p) {
  if (ntroot(p)) pushall(t[p].fa);
  pushdown(p);
}
inline void rotate(int x) {
  int y = t[x].fa, z = t[y].fa, d = t[y].ch[1] == x;
  if (ntroot(y)) t[z].ch[t[z].ch[1] == y] = x;
  t[x].fa = z;
  t[y].fa = x;
  if (t[x].ch[d ^ 1]) t[t[x].ch[d ^ 1]].fa = y;
  t[y].ch[d] = t[x].ch[d ^ 1];
  t[x].ch[d ^ 1] = y;
  pushup(y);
  pushup(x);
}
inline void splay(int p) {
  pushall(p);
  while (ntroot(p)) {
    int f = t[p].fa, g = t[f].fa;
    if (ntroot(f)) rotate((t[f].ch[0] == p) == (t[g].ch[0] == f) ? f : p);
    rotate(p);
  }
}
inline void access(int x) {
  for (int y = 0; x; y = x, x = t[x].fa) {
    splay(x);
    t[x].ch[1] = y;
    pushup(x);
  }
}
inline void makeroot(int p) {
  access(p);
  splay(p);
  t[p].rev ^= 1;
}
inline int findroot(int p) {
  access(p);
  splay(p);
  while ((t[p].ch[0])) {
    pushdown(p);
    p = (t[p].ch[0]);
  }
  splay(p);
  return p;
}
inline void split(int x, int y) {
  makeroot(x);
  access(y);
  splay(y);
}
inline bool link(int x, int y) {
  makeroot(x);
  if (findroot(y) == x) return 0;
  t[x].fa = y;
  return 1;
}
inline void cut(int x, int y) {
  access(x), splay(y);
  (t[y].ch[1]) = t[x].fa = 0;
  pushup(y);
}
inline int calc(int &p) {
  access(p);
  splay(p);
  int ret = t[p].sz;
  while ((t[p].ch[0])) p = (t[p].ch[0]);
  return ret - 1;
}
bool cmp(Query a, Query b) { return a.x == b.x ? a.pos < b.pos : a.x < b.x; }
int n, w, m, Q, cnt, block, a[N], lg[N], ans[N], nxt[N], stmn[M][N], stmx[M][N];
inline int query(int l, int r) {
  int k = lg[r - l + 1];
  return max(stmx[k][l], stmx[k][r - (1 << k) + 1]) -
         min(stmn[k][l], stmn[k][r - (1 << k) + 1]);
}
inline int find(int l, int w) {
  int r = n, pos = l, ans = n;
  while (l <= r) {
    int mid = (l + r) >> 1;
    if (query(pos, mid) <= w)
      l = mid + 1, ans = mid;
    else
      r = mid - 1;
  }
  return ans + 1;
}
inline void modify(int x, int k, int now) {
  int y = find(x, k);
  if (y - x >= block) return;
  int l = now, r = m, ans = m + 1, val = query(x, y);
  while (l <= r) {
    int mid = (l + r) >> 1;
    if (val > q[mid].x)
      l = mid + 1, ans = mid;
    else
      r = mid - 1;
  }
  ++ans;
  if (ans <= m) v[ans].push_back((Node){x, y, ans});
  link(x, y);
  ++cnt;
}
inline void update(int k, int now) {
  for (int i = 0; i < v[now].size(); i++) {
    int x = v[now][i].pos, y = v[now][i].nxt;
    cut(x, y);
    modify(x, k, now);
  }
  v[now].clear();
}
inline int query(int x) {
  int p = 1, ret = 0;
  while (p <= n) {
    ret += calc(p);
    if (p <= n) {
      ++ret;
      int t = find(p, x);
      p = t;
    }
  }
  return ret;
}
int main() {
  read(n);
  read(w);
  read(m);
  block = sqrt(n);
  block = min(block, 50);
  for (int i = 2; i <= n; i++) lg[i] = lg[i >> 1] + 1;
  for (int i = 1; i <= n; i++) read(a[i]), stmn[0][i] = stmx[0][i] = a[i];
  for (int i = 1; i <= 20; i++) {
    for (int j = 1; j <= n; j++) {
      stmn[i][j] = min(stmn[i - 1][j], stmn[i - 1][j + (1 << (i - 1))]);
      stmx[i][j] = max(stmx[i - 1][j], stmx[i - 1][j + (1 << (i - 1))]);
    }
  }
  for (int i = 1; i <= m; i++) {
    read(q[i].x);
    q[i].x = w - q[i].x;
    q[i].pos = i;
  }
  sort(q + 1, q + m + 1, cmp);
  for (int i = 1; i <= n; i++) modify(i, 0, 0);
  for (int i = 1; i <= m; i++) {
    update(q[i].x, i);
    ans[q[i].pos] = query(q[i].x) - 1;
  }
  for (int i = 1; i <= m; i++) printf("%d\n", ans[i]);
  return 0;
}