include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
const int N=200010;
int n,m,k;
int a[N];
int main(){
cin>>n>>m>>k;
while(n–){
int t,c;
cin>>t>>c;
int l=t-k-c+1,r=t-k;
if(r>0) a[max(1,l)]++,a[r+1]–;
}
for(int i=1;i[HTML_REMOVED]>t;
cout<<a[t]<<”\n”;
}
return 0;
}