#include <stdio.h>

int main() {
  int n,w,h,s,t;
  int board[100][100];
  int i,j;
  int x,y;
  int max,cnt;

  while(scanf("%d",&n),n){
  	scanf("%d%d",&w,&h);

    for(i = 0;i < n;i++){
      scanf("%d%d",&x,&y);
      board[y][x] = 1;
    }

    scanf("%d%d",&s,&t);
    for(max = 0,y = 1; y <= h; y++){
      for(x = 1; x <= w; x++){
        for(cnt = 0,i = 0; i < t; i++){
          if(y + i > h)break;
          for(j = 0; j < s; j++){
            if(x + j > w)break;
            cnt += board[y + i][x + j];
            if(cnt > max)max = cnt;
          }
        }
      }
    }
    printf("%d\n",max);
  }
  return 0;
}