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