#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, a, b, c, cal = 0, doller = 0;
  scanf("%d", &n);
  int d[n];
  scanf("%d %d", &a, &b);
  scanf("%d", &c);
  for (int i = 0; i < n; i++) {
    scanf("%d", &d[i]);
  }
  sort(d, d + n);
  reverse(d, d + n);
  cal += c + d[0] + d[1];
  doller += a + b * 2;
  printf("%d\n", cal / doller);
}
