#include <bits/stdc++.h>
struct Event {
  int pos, left, right, type, id;
};
const int MAXN = 1e5;
const int MAXPOP = 3e5;
const int MAXIND = 2e5 + 1;
int price[MAXN], standard[MAXN], beauty[MAXN];
int income[MAXN], preferred[MAXN], canBuy[MAXN];
Event city[MAXPOP];
int leftTree[MAXIND];
int rightTree[MAXIND];
void modif(int *tree, int index, int val) {
  while (index <= MAXIND) {
    tree[index] += val;
    index += index & (-index);
  }
}
int sum(int *tree, int index) {
  int result = 0;
  while (index > 0) {
    result += tree[index];
    index -= index & (-index);
  }
  return result;
}
int main() {
  std::ios::sync_with_stdio(false);
  std::cout.tie(nullptr);
  std::cin.tie(nullptr);
  int dishes, people;
  std::cin >> dishes >> people;
  int population = 2 * dishes + people;
  for (int iDish = 0; iDish < dishes; iDish++) std::cin >> price[iDish];
  for (int iDish = 0; iDish < dishes; iDish++) std::cin >> standard[iDish];
  for (int iDish = 0; iDish < dishes; iDish++) std::cin >> beauty[iDish];
  for (int iPers = 0; iPers < people; iPers++) std::cin >> income[iPers];
  for (int iPers = 0; iPers < people; iPers++) std::cin >> preferred[iPers];
  for (int iDish = 0; iDish < dishes; iDish++) {
    city[2 * iDish].pos = price[iDish];
    city[2 * iDish + 1].pos = standard[iDish];
    city[2 * iDish].left = city[2 * iDish + 1].left =
        beauty[iDish] - price[iDish];
    city[2 * iDish].right = city[2 * iDish + 1].right =
        beauty[iDish] + price[iDish];
    city[2 * iDish].type = 1;
    city[2 * iDish + 1].type = -1;
    city[2 * iDish].id = city[2 * iDish + 1].id = -1;
  }
  for (int iPers = 0; iPers < people; iPers++) {
    city[iPers + 2 * dishes].pos = income[iPers];
    city[iPers + 2 * dishes].left = preferred[iPers] - income[iPers] - 1;
    city[iPers + 2 * dishes].right = preferred[iPers] + income[iPers] + 1;
    city[iPers + 2 * dishes].type = 0;
    city[iPers + 2 * dishes].id = iPers;
  }
  int cur = 0;
  std::sort(city, city + population,
            [](const Event &a, const Event &b) { return (a.left < b.left); });
  for (int iLeft = 1; cur < population; iLeft++) {
    int val = city[cur].left;
    while (cur < population && city[cur].left == val) city[cur++].left = iLeft;
  }
  cur = 0;
  std::sort(city, city + population,
            [](const Event &a, const Event &b) { return (a.right > b.right); });
  for (int iRight = 1; cur < population; iRight++) {
    int val = city[cur].right;
    while (cur < population && city[cur].right == val)
      city[cur++].right = iRight;
  }
  cur = 0;
  std::sort(city, city + population, [](const Event &a, const Event &b) {
    return (a.pos != b.pos ? a.pos < b.pos : a.type > b.type);
  });
  for (int iEvent = 0; iEvent < population; iEvent++) {
    if (city[iEvent].type == 0)
      canBuy[city[iEvent].id] = cur - sum(leftTree, city[iEvent].left) -
                                sum(rightTree, city[iEvent].right);
    else {
      modif(leftTree, city[iEvent].left, city[iEvent].type);
      modif(rightTree, city[iEvent].right, city[iEvent].type);
      cur += city[iEvent].type;
    }
  }
  for (int iPers = 0; iPers < people; iPers++)
    std::cout << canBuy[iPers] << ' ';
  std::cout << '\n';
  return 0;
}
