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>
template <typename T>
inline T read() {
  T x = 0;
  char ch = getchar();
  bool f = 0;
  while (!std::isdigit(ch)) f = (ch == '-'), ch = getchar();
  while (std::isdigit(ch)) x = x * 10 + (ch - '0'), ch = getchar();
  return f ? -x : x;
}
template <typename T>
void print(T x) {
  if (x < 0) {
    x = -x;
    putchar('-');
  }
  if (x < 10) {
    putchar(x + 48);
    return;
  }
  print<T>(x / 10);
  putchar(x % 10 + 48);
  return;
}
const int N = 1e5 * 1.1, B = sqrt(N);
int n, w, a[N], stmx[18][N], stmn[18][N], k[N], lst[N], res[N], g[N];
std::vector<int> v[N];
std::pair<int, int> p[N];
int query(int x, int y) {
  int qs = g[y - x + 1];
  return std::max(stmx[qs][x], stmx[qs][y - (1 << qs) + 1]) -
         std::min(stmn[qs][x], stmn[qs][y - (1 << qs) + 1]);
}
struct Node {
  int fa, son[2], sz;
} QS[N];
void up(int k) { QS[k].sz = QS[QS[k].son[0]].sz + QS[QS[k].son[1]].sz + 1; }
bool no_root(int k) {
  return QS[QS[k].fa].son[0] == k || QS[QS[k].fa].son[1] == k;
}
void rotate(int k) {
  int p = QS[k].fa, gp = QS[p].fa, isl = QS[p].son[1] == k;
  if (no_root(p)) QS[gp].son[QS[gp].son[1] == p] = k;
  if (QS[k].son[isl ^ 1]) QS[QS[k].son[isl ^ 1]].fa = p;
  QS[p].fa = k;
  QS[k].fa = gp;
  QS[p].son[isl] = QS[k].son[isl ^ 1];
  QS[k].son[isl ^ 1] = p;
  up(p);
}
int s[N], top;
void splay(int k) {
  while (no_root(k)) {
    int p = QS[k].fa;
    if (no_root(p))
      rotate((QS[p].son[1] == k) == (QS[QS[p].fa].son[1] == p) ? p : k);
    rotate(k);
  }
  return up(k);
}
void access(int x) {
  for (int y = 0; x; x = QS[y = x].fa) {
    splay(x);
    QS[x].son[1] = y;
    up(x);
  }
}
void link(int x, int y) {
  splay(x);
  QS[x].fa = y;
}
void cut(int x, int y) {
  access(x);
  splay(y);
  QS[x].fa = QS[y].son[1] = 0;
  up(y);
}
int find_root(int x) {
  access(x);
  splay(x);
  while (QS[x].son[0]) x = QS[x].son[0];
  splay(x);
  return x;
}
int main() {
  n = read<int>();
  w = read<int>();
  int q = read<int>();
  for (int i = 1; i <= n; ++i) stmx[0][i] = stmn[0][i] = a[i] = read<int>();
  for (int i = 2; i <= n; ++i) g[i] = g[i / 2] + 1;
  for (int i = 1; i <= 16; ++i) {
    int len = 1 << i;
    for (int j = 1; j <= n - len + 1; ++j) {
      stmx[i][j] = std::max(stmx[i - 1][j], stmx[i - 1][j + len / 2]);
      stmn[i][j] = std::min(stmn[i - 1][j], stmn[i - 1][j + len / 2]);
    }
  }
  for (int i = 1; i <= q; ++i) p[i] = std::make_pair(k[i] = w - read<int>(), i);
  std::sort(p + 1, p + 1 + q);
  std::sort(k + 1, k + 1 + q);
  for (int i = 1; i <= n; ++i) {
    v[1].push_back(i);
    link(i, lst[i] = i + 1);
    QS[i].sz = 1;
  }
  QS[n + 1].sz = 1;
  for (int i = 1; i <= q; ++i) {
    for (int j = 0; j < (int)v[i].size(); ++j) {
      cut(v[i][j], lst[v[i][j]]);
      int &ans = lst[v[i][j]];
      while (ans <= n && query(v[i][j], ans) <= k[i] && ans - v[i][j] <= B)
        ++ans;
      if (ans == n + 1)
        link(v[i][j], n + 1);
      else if (ans - v[i][j] <= B) {
        link(v[i][j], ans);
        int pos =
            std::lower_bound(k + i + 1, k + q + 1, query(v[i][j], ans)) - k;
        if (pos != q + 1) v[pos].push_back(v[i][j]);
      }
    }
    int tot = 0, nw = 1;
    while (nw != n + 1) {
      access(nw);
      splay(nw);
      tot += QS[nw].sz - 1;
      nw = find_root(nw);
      if (nw == n + 1) break;
      tot++;
      int L = nw + 1, R = n, nxt = n + 1;
      while (L <= R) {
        int mid(L + R >> 1);
        if (query(nw, mid) > k[i]) {
          nxt = mid;
          R = mid - 1;
        } else
          L = mid + 1;
      }
      nw = nxt;
    }
    res[p[i].second] = tot - 1;
  }
  for (int i = 1; i <= q; ++i) {
    print<int>(res[i]);
    putchar('\n');
  }
  return 0;
}