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 maxtt(T &t1, T t2) {
  t1 = max(t1, t2);
}
template <typename T>
void mintt(T &t1, T t2) {
  t1 = min(t1, t2);
}
bool debug = 0;
int n, m, k;
int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};
string direc = "RDLU";
long long ln, lk, lm;
void etp(bool f = 0) {
  puts(f ? "YES" : "NO");
  exit(0);
}
void addmod(int &x, int y, int mod = 1000000007) {
  assert(y >= 0);
  x += y;
  if (x >= mod) x -= mod;
  assert(x >= 0 && x < mod);
}
void et(int x = -1) {
  printf("%d\n", x);
  exit(0);
}
long long fastPow(long long x, long long y, int mod = 1000000007) {
  long long ans = 1;
  while (y > 0) {
    if (y & 1) ans = (x * ans) % mod;
    x = x * x % mod;
    y >>= 1;
  }
  return ans;
}
long long gcd1(long long x, long long y) { return y ? gcd1(y, x % y) : x; }
struct SplayNode {
  int sz = 1;
} sn[100105];
const int N = 100105;
int ch[N][2];
int f[N], rev[N];
void PushUp(int p) { sn[p].sz = 1 + sn[ch[p][0]].sz + sn[ch[p][1]].sz; }
void PushDown(int p) {
  if (rev[p]) {
    swap(ch[p][0], ch[p][1]);
    rev[ch[p][0]] ^= 1;
    rev[ch[p][1]] ^= 1;
    rev[p] = 0;
  }
}
void Rotate(int x) {
  int y = f[x], z = f[y], k = (ch[f[x]][1] == x);
  if (!(ch[f[y]][0] != y && ch[f[y]][1] != y)) ch[z][ch[z][1] == y] = x;
  ch[y][k] = ch[x][!k];
  f[ch[y][k]] = y;
  ch[x][!k] = y;
  f[y] = x;
  f[x] = z;
  PushUp(y);
  PushUp(x);
}
inline void Update(int p) {
  if (!(ch[f[p]][0] != p && ch[f[p]][1] != p)) Update(f[p]);
  PushDown(p);
}
void Splay(int x) {
  Update(x);
  for (int fa; (fa = f[x]) != 0 && !(ch[f[x]][0] != x && ch[f[x]][1] != x);
       Rotate(x)) {
    if (!(ch[f[fa]][0] != fa && ch[f[fa]][1] != fa))
      Rotate((ch[f[fa]][1] == fa) == (ch[f[x]][1] == x) ? fa : x);
  }
  PushUp(x);
  PushDown(x);
}
int Access(int x) {
  int p;
  for (p = 0; x; p = x, x = f[x]) {
    Splay(x);
    ch[x][1] = p;
    PushUp(x);
  }
  return p;
}
void link(int u, int v) {
  assert(u != v);
  Access(u);
  Splay(u);
  Access(v);
  Splay(v);
  f[u] = v;
  PushUp(v);
}
void cut(int u, int v) {
  Access(v);
  Splay(v);
  Splay(u);
  f[u] = 0;
  PushUp(u);
  PushUp(v);
}
int Find(int p) {
  Access(p);
  Splay(p);
  while (ch[p][0]) {
    PushDown(p);
    p = ch[p][0];
  }
  return p;
}
int w, X[100105], nxt[100105], ans[100105];
struct stq {
  int mi[100105][20], ma[100105][20], LOG[100105];
  void init(int n) {
    for (int(i) = 1; (i) <= (int)(n); (i)++) {
      mi[i][0] = X[i];
      ma[i][0] = X[i];
    }
    for (int j = 1; (1 << j) <= n; j++) {
      for (int i = 1; i + (1 << j) - 1 <= n; i++) {
        mi[i][j] = min(mi[i][j - 1], mi[i + (1 << (j - 1))][j - 1]);
        ma[i][j] = max(ma[i][j - 1], ma[i + (1 << (j - 1))][j - 1]);
      }
    }
    for (int i = 2; i <= n; ++i) LOG[i] = LOG[i >> 1] + 1;
  }
  int qym(int l, int r) {
    if (r < l) swap(l, r);
    int x = LOG[r - l + 1];
    int y = min(mi[l][x], mi[r - (1 << x) + 1][x]);
    int yy = max(ma[l][x], ma[r - (1 << x) + 1][x]);
    return y - yy;
  }
} stQuery;
const int maxn = 100105;
namespace LCT {
struct node {
  node *ch[2], *par;
  int sz;
  node() {
    memset(ch, 0, sizeof ch);
    par = 0;
    sz = 1;
  }
  inline bool isr() const {
    return !par || par->ch[0] != this && par->ch[1] != this;
  }
  inline int dir() const { return par->ch[1] == this; }
  inline void pull() {
    sz = 1 + (ch[0] ? ch[0]->sz : 0) + (ch[1] ? ch[1]->sz : 0);
    return;
  }
  inline void setc(int d, node *u) {
    ch[d] = u;
    if (u) u->par = this;
    return;
  }
} pool[maxn];
inline void rot(node *u) {
  node *p = u->par;
  int d = u->dir();
  if (p->isr())
    u->par = p->par;
  else
    p->par->setc(p->dir(), u);
  p->setc(d, u->ch[!d]);
  u->setc(!d, p);
  return p->pull();
}
inline void splay(node *u) {
  while (!u->isr()) {
    if (!u->par->isr()) rot(u->dir() == u->par->dir() ? u->par : u);
    rot(u);
  }
  return u->pull();
}
inline void access(node *u) {
  for (node *v = 0; u; u = u->par) {
    splay(u);
    u->ch[1] = v;
    (v = u)->pull();
  }
  return;
}
inline void link(int a, int b) {
  node *u = pool + a, *v = pool + b;
  access(u);
  splay(u);
  access(v);
  splay(v);
  u->par = v;
  return;
}
inline void cut(int a, int b) {
  node *u = pool + a, *v = pool + b;
  access(v);
  splay(v);
  splay(u);
  u->par = 0;
  return;
}
inline int dep(int a) {
  node *u = pool + a;
  access(u);
  splay(u);
  return u->sz;
}
inline int findr(int a) {
  node *u = pool + a;
  access(u);
  splay(u);
  while (u->ch[0]) u = u->ch[0];
  splay(u);
  return u - pool;
}
}  // namespace LCT
void fmain(int ID) {
  scanf("%d%d%d", &n, &w, &m);
  for (int(i) = 1; (i) <= (int)(n); (i)++) {
    scanf("%d", X + i);
  }
  sn[0].sz = 0;
  stQuery.init(n);
  int SZ = 50;
  set<pair<int, int> > eve;
  for (int(i) = 1; (i) <= (int)(n); (i)++) {
    nxt[i] = -1;
    int to = min(n + 1, i + SZ);
    eve.insert({stQuery.qym(i, to - 1) + 1, -i});
  }
  for (int(i) = 1; (i) <= (int)(m); (i)++) {
    scanf("%d", &k);
    eve.insert({k - w, i});
  }
  while (!eve.empty()) {
    auto it = eve.begin();
    if (it->first > 0) break;
    if (it->second > 0) {
      int id = it->second;
      int d = it->first;
      for (int i = 1; i <= n;) {
        if (nxt[i] == -1) {
          int L = i, R = n;
          while (L <= R) {
            int mid = (L + R) / 2;
            if (stQuery.qym(i, mid) < d)
              R = mid - 1;
            else
              L = mid + 1;
          }
          i = L;
          ans[id]++;
        } else {
          ans[id] += LCT::dep(i) - 1;
          i = LCT::findr(i);
        }
      }
    } else {
      int id = -it->second, d = it->first;
      if (nxt[id] == -1) {
        int j = id;
        while (j + 1 <= n && stQuery.qym(id, j + 1) >= d) {
          j++;
        }
        nxt[id] = ++j;
        LCT::link(id, nxt[id]);
      } else {
        int j = nxt[id];
        LCT::cut(id, j);
        j--;
        while (stQuery.qym(id, j) < d) j--;
        nxt[id] = ++j;
        LCT::link(id, nxt[id]);
      }
      if (id + 1 < nxt[id]) eve.insert({stQuery.qym(id, nxt[id] - 1) + 1, -id});
    }
    eve.erase(it);
  }
  for (int(i) = 1; (i) <= (int)(m); (i)++) printf("%d\n", ans[i] - 1);
}
int main() {
  int t = 1;
  for (int(i) = 1; (i) <= (int)(t); (i)++) {
    fmain(i);
  }
  return 0;
}