// Undone
#include <bits/stdc++.h>
#define int long long
#define double long double
#define INF 1e18
#define MOD 1000000007
using namespace std;
int N, W, H, S, T, grid[1000][1000];
signed main() {
  // そのまま全探索できます
  while (cin >> N, N) {
    cin >> W >> H;
    for (int i = 0; i < H; i++) {
      for (int j = 0; j < W; j++) {
        grid[i][j] = 0;
      }
    }
    for (int i = 0; i < N; i++) {
      int x, y; cin >> x >> y;
      grid[--y][--x] = 1;
    }
    cin >> S >> T;
    int ans = 0;
    for (int i = 0; i <= H-T; i++) {
      for (int j = 0; j <= W-S; j++) {
        int cnt = 0;
        for (int k = i; k < i+T; k++) {
          for (int l = j; l < j+S; l++) {
            cnt += grid[k][l];
          }
        }
        ans = max(ans, cnt);
      }
    }
    cout << ans << endl;
  }
}


