#include <iostream>
#include <cstring>
using namespace std;
int main(){
	int N;
	while( cin >> N, N ){
		int i, j, k, l;
		int W, H, S, T;
		cin >> W >> H;
		char field[100][100];
		memset(field, '.', sizeof(field));
		for( i = 0; i < N; i++ ){
			int X, Y;
			cin >> X >> Y;
			field[X-1][Y-1] = '*';
		}
		cin >> S >> T;
		int max = 0;
		for( i = 0; i < W-S+1; i++ ){
			for( j = 0; j < H-T+1; j++ ){
				int sum = 0;
				for( k = 0; k < S; k++ ){
					for( l = 0; l < T; l++ ){
						if( field[i+k][j+l] == '*' ){
							sum++;
						}
					}
				}
				if( max < sum ){ max = sum; }
			}
		}
		cout << max << endl;
	}
}