#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;

bool field[100][100];
int main() {
	int n;
	while (scanf("%d", &n), n) {
		memset(field, 0, sizeof(field));
		int w, h; scanf("%d%d", &w, &h);
		rep(i, n) {
			int x, y; scanf("%d%d", &x, &y);
			x--; y--;
			field[x][y] = true;
		}
		int s, t; scanf("%d%d", &s, &t);
		int Max = 0;
		rep(i, w - s + 1)rep(j, h - t + 1) {
			int cnt = 0;
			rep(k, s)rep(l, t)cnt += field[i + k][j + l];
			Max = max(Max, cnt);
		}
		printf("%d\n", Max);
	}
}