#include <bits/stdc++.h>
using namespace std;
#define kyd "light."
#define int long long
#define fi first
#define se second
#define pb push_back
#define vi vector<int>
#define ii pair<int, int>
#define vii vector<ii>
#define FOR(i, a, b) for(int i = (a), _b = (b); i <= _b; i++)
#define FORD(i, b, a) for(int i = (b), _a = (a); i >= _a; i--)
template<typename T> bool maximize(T &res, const T &val){ if(res < val){ res = val; return 1; } return 0; }
template<typename T> bool minimize(T &res, const T &val){ if(res > val){ res = val; return 1; } return 0; }
const int MOD = 1e9+7;
int add(int a, int b){ if(a > MOD - b) return a - MOD + b; return a + b; }
int mul(int a, int b){ return ((a % MOD) * (b % MOD)) % MOD; }
int sub(int a, int b){ if(a < b) return a - b + MOD; return a - b; }
const int N = 1e5+5;
int n, m;
int b;
int d;
int a[N];
vi s, t;
signed main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
freopen(kyd"inp","r",stdin);
freopen(kyd"out","w",stdout);
cin >> n >> m;
FOR(i,1,n)
cin >> a[i];
FOR(i,1,n){
cin >> b;
s.pb(max(1ll, a[i]-b));
t.pb(a[i]+b);
}
sort(s.begin(), s.end());
sort(t.begin(), t.end());
FOR(i,1,m){
cin >> d;
cout << (upper_bound(s.begin(), s.end(), d) - s.begin()) - (lower_bound(t.begin(), t.end(), d) - t.begin()) << " ";
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgojZGVmaW5lIGt5ZCAgICAgImxpZ2h0LiIKI2RlZmluZSBpbnQgICAgIGxvbmcgbG9uZwojZGVmaW5lIGZpICAgICAgZmlyc3QKI2RlZmluZSBzZSAgICAgIHNlY29uZAojZGVmaW5lIHBiICAgICAgcHVzaF9iYWNrCiNkZWZpbmUgdmkgICAgICB2ZWN0b3I8aW50PgojZGVmaW5lIGlpICAgICAgcGFpcjxpbnQsIGludD4KI2RlZmluZSB2aWkgICAgIHZlY3RvcjxpaT4KI2RlZmluZSBGT1IoaSwgYSwgYikgICAgZm9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