#include<iostream>
using namespace std;

int main()
{
	int n, w, h, x, y, s, t, c, maxi;

	while (cin >> n , n) {
		cin >> w >> h;
		bool m[w][h];
		for (int i = 0; i < w; i++) {
			for (int j = 0; j < h; j++) {
				m[i][j] = false;
			}
		}
		
		while (n--) {
			cin >> x >> y;
			m[x - 1][y - 1] = true; 
		}
		
		cin >> s >> t;
		maxi = 0;

		for (int i = 0;  i + s - 1 < w; i++) {
			for (int j = 0; j + t - 1 < h; j++) {
				c = 0;
				for (int k = i; k < i + s; k++) {
					for (int l = j; l < j + t; l++) {
						if (m[k][l]) c++;
					}
				}
				maxi = max(maxi, c);
			}
		}
		
		cout << maxi << endl;
	}
	
	return 0;
}