#include using namespace std; int main () { int n,xc,yc,r,i,xp,yp,cnt=0; cin>>n>>xc>>yc>>r; for(i=1;i<=n;i++) { cin>>xp>>yp; if((xc-r<=xp && xp<=xc+r ) && (yc-r<=yp && yp<=yc+r)) if(!((yp==yc+r && xp!=xc) || (yp==yc-r && xp!=xc))) cnt++; } cout<