public static void main(String[] args){ Scanner sc = new Scanner(System.in);
while(true){
int asta = sc.nextInt(); int yoko = sc.nextInt(); int tate = sc.nextInt();
int[][] area = new int[yoko+1][tate+1];
int c = 0;
while(c < asta){ int i = sc.nextInt(); int j = sc.nextInt(); area[i][j] = 9;
c++; }
int srch = sc.nextInt(); int srch2 = sc.nextInt(); int max = 0;
int s = shori(area,srch,srch2,yoko+1,tate+1); if(s > max){ max = s; }
System.out.println(max);
}
}
public static int shori(int[][] area,int x,int y,int yoko,int tate){ int count = 0; int i=1; int j= 1; int a = 1; int b = 1; while(a < yoko){ while(b < tate){ for(i = a; i < x;i++){ for(j = b; j< y;j++){
if(area[i][j] == 9){ count++; } } } y = y + y; b = b + y; } x = x + x; a = a + x; b = 1; }
public static int shori(int[][] area,int x,int y,int yoko,int tate){
int count = 0;
int i = 1;
int j = 1;
int a = 1;
while(a < yoko){
int b = 1;
while(b < tate){
for(i = a; i <= x;i++){
for(j = b; j <= y;j++){
if(area[i][j] == 9){
count++;
}
}
}
y = y + y;
b = b + y;
}
x = x + x;
a = a + x;
}