#include <bits/stdc++.h>
int n, m, p[100005], s[100005], b[100005], inc[100005], pref[100005];
struct tree {
  int c[100005 << 2];
  inline void upd(int x, int v) {
    for (; x <= 400000; x += x & -x) c[x] += v;
  }
  inline int qry(int x, int ret = 0) {
    for (; x; x -= x & -x) ret += c[x];
    return ret;
  }
} T1, T2;
std::pair<int, int> q[100005 << 2];
int cnt, lcnt, rcnt, L[100005 << 2], R[100005 << 2], ans[100005];
int main() {
  std::cin >> n >> m;
  for (int i = 1, iend = n; i <= iend; ++i) std::cin >> p[i];
  for (int i = 1, iend = n; i <= iend; ++i) std::cin >> s[i];
  for (int i = 1, iend = n; i <= iend; ++i) std::cin >> b[i];
  for (int i = 1, iend = m; i <= iend; ++i) std::cin >> inc[i];
  for (int i = 1, iend = m; i <= iend; ++i) std::cin >> pref[i];
  for (int i = 1, iend = n; i <= iend; ++i) {
    q[++cnt] = {p[i], i};
    q[++cnt] = {s[i], i + (400000 << 1)};
    L[++lcnt] = p[i] - b[i], R[++rcnt] = p[i] + b[i];
  }
  for (int i = 1, iend = m; i <= iend; ++i) {
    q[++cnt] = {inc[i], i + 400000};
    L[++lcnt] = inc[i] - pref[i], R[++rcnt] = inc[i] + pref[i];
  }
  L[++lcnt] = -2e9, R[++rcnt] = -2e9;
  std::sort(q + 1, q + cnt + 1);
  std::sort(L + 1, L + lcnt + 1),
      lcnt = std::unique(L + 1, L + lcnt + 1) - L - 1;
  std::sort(R + 1, R + rcnt + 1),
      rcnt = std::unique(R + 1, R + rcnt + 1) - R - 1;
  int tmp = 0;
  for (int i = 1, iend = cnt; i <= iend; ++i) {
    int ty = q[i].second;
    if (ty < 400000) {
      ++tmp;
      T1.upd(std::lower_bound(L + 1, L + lcnt + 1, p[ty] - b[ty]) - L, 1);
      T2.upd(std::lower_bound(R + 1, R + rcnt + 1, p[ty] + b[ty]) - R, 1);
    } else if (ty < (400000 << 1)) {
      ty -= 400000;
      ans[ty] +=
          T1.qry(std::lower_bound(L + 1, L + lcnt + 1, inc[ty] - pref[ty]) - L);
      ans[ty] +=
          T2.qry(std::lower_bound(R + 1, R + rcnt + 1, inc[ty] + pref[ty]) - R);
      ans[ty] -= tmp;
    } else {
      --tmp, ty -= 400000 << 1;
      T1.upd(std::lower_bound(L + 1, L + lcnt + 1, p[ty] - b[ty]) - L, -1);
      T2.upd(std::lower_bound(R + 1, R + rcnt + 1, p[ty] + b[ty]) - R, -1);
    }
  }
  for (int i = 1, iend = m; i <= iend; ++i)
    std::cout << ans[i] << " \n"[i == m];
  return 0;
}
