#include <cstdio>

int main(){
	int n;
	while(scanf("%d", &n),n){
		int w, h, s, t;
		int ans = 0;
		bool cell[100][100];
		for(int i = 0; i < 100; i++){
			for(int j = 0; j < 100; j++) cell[i][j] = false;
		}
		scanf("%d%d", &w, &h);
		for(int i = 0; i < n; i++){
			int x, y;
			scanf("%d%d", &x, &y);
			x--; y--;
			cell[x][y] = true;
		}
		scanf("%d%d", &s, &t);
		for(int i = 0; i <= w-s; i++){
			for(int j = 0; j <= h-t; j++){	
				int cnt = 0;
				for(int k = i; k < i+s; k++){
					for(int l = j; l < j+t; l++){
						cnt += cell[k][l];
					}
				}
				if(ans < cnt) ans = cnt;
			}
		}
		printf("%d\n", ans);
	}
}