#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target( \
    "sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native")
using namespace std;
int n, w, q;
int read() {
  int s = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    s = s * 10 + ch - '0';
    ch = getchar();
  }
  return s * f;
}
int a[101010], Q[101010], mx[101010], mn[101010], b[101010];
int main() {
  n = read(), w = read(), q = read();
  for (int i = 1; i <= n; ++i) a[i] = read();
  for (int i = 1; i <= q; ++i) {
    Q[i] = w - read();
    mx[i] = mn[i] = a[1];
  }
  for (int i = 2; i <= n; ++i) {
    for (int j = 1; j <= q; ++j) {
      (mx[j] < a[i]) && (mx[j] = a[i]), (mn[j] > a[i]) && (mn[j] = a[i]),
          (mx[j] - mn[j] > Q[j]) && (mx[j] = mn[j] = a[i], ++b[j]);
    }
  }
  for (int i = 1; i <= q; ++i) {
    printf("%d\n", b[i]);
  }
}
