#include <bits/stdc++.h>
using namespace std;

#define int long long
#define fi first
#define se second
#define pb push_back
#define SQR(x) (1LL * (x) * (x))
#define debug cout << "ok\n";

const double PI = acos(-1.0);

int32_t main() {
    ios::sync_with_stdio(false);
    cin.tie(0);

    int n;
    cin >> n;

    vector<pair<int,int>> a(n);
    for (int i = 0; i < n; i++) cin >> a[i].fi >> a[i].se;

    double angle;
    double X, Y;
    cin >> angle >> X >> Y;

    vector<double> ang;
    int same = 0;

    for (auto [x, y] : a) {
        double dx = x - X, dy = y - Y;
        if (dx == 0 && dy == 0) {
            same++;
            continue;
        }
        double theta = atan2(dy, dx) * 180.0 / PI;
        if (theta < 0) theta += 360.0;
        ang.pb(theta);
    }

    sort(ang.begin(), ang.end());
    int m = ang.size();
    for (int i = 0; i < m; i++) ang.pb(ang[i] + 360.0);

    int res = 0;
    int j = 0;
    for (int i = 0; i < m; i++) {
        while (j < (int)ang.size() && ang[j] - ang[i] <= angle + 1e-9) j++;
        res = max(res, j - i);
    }

    cout << res + same << "\n";
    return 0;
}
