#include using namespace std; typedef long long ll; typedef long double ld; ll n; ll a, b, r; ll x, y; vectorv; vectorw; ll ans=0; int main() { ios_base::sync_with_stdio(false); cin>>n>>r>>a>>b; r*=a*a+b*b; for (int i=1; i<=n; ++i) { cin>>x>>y; ll p=a*x+b*y; ll d=b*x-a*y; if (r*r-d*d>=0) { ld st=ld(p)-sqrt(r*r-d*d); ld en=ld(p)+sqrt(r*r-d*d); v.push_back(st); w.push_back(en); } } ll i=0; ll j=0; while(i