#include using namespace std; inline double getDist(const double &a, const double &b, const double &x, const double &y) { return sqrt((a - x) * (a - x) + (b - y) * (b - y)); } int main() { ios::sync_with_stdio(false); double n, x, y, r; cin >> n >> x >> y >> r; int ans = 0; for(int i = 1; i <= n; i++) { double a, b; cin >> a >> b; if(getDist(a, b, x, y) <= r) { ans++; } } cout << ans; cout << "\n"; return 0; }