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

int main() {
	int N;
	while( cin >> N, N ) {
		int W, H;
		cin >> W >> H;
		vector<vector<bool>>D( W, vector<bool>( H ) );
		for( size_t i = 0; i < N; i++ ) {
			int a, b;
			cin >> a >> b;
			a--; b--;
			D[a][b] = 1;
		}
		int S, T;
		cin >> S >> T;
		vector<vector<int>>M( 104, vector<int>( 104 ) );

		int ans = 0;
		for( size_t i = 0; i < W - S + 1; i++ ) {
			for( size_t j = 0; j < H - T + 1; j++ ) {
				for( size_t k = 0; k < S; k++ ) {
					for( size_t l = 0; l < T; l++ ) {
						M[i][j] += D[i + k][j + l];
					}
				}
				ans = max( M[i][j], ans );
			}
		}
		cout << ans << endl;
	}
}