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

int main(){
	int N, W, H, S, T, x, y;
	while(1){
		int temp[220][220] = {}, ans = 0, count;
		
		cin>>N;
		
		if(N == 0) break;
		
		cin>>W>>H;
		
		for(int i = 0; i < N; i++){
			cin>>x>>y;
			temp[y][x] = 1;
		}
		cin>>S>>T;
		
		for(int i = 1; i <= H; i++){
			for(int j = 1; j <= W; j++){
				count = 0;
				for(int k = 0; k < T; k++)
					for(int l = 0; l < S; l++) if(temp[i+k][j+l] == 1)count++;
				ans = max(count, ans);	
			}
		}
		cout<<ans<<endl;
	}
	return 0;
}
