#include <bits/stdc++.h>
int main() {
  int n, kp, tp;
  long int kc, tc[10000];
  int i, j, ans, temp, sum;
  scanf("%d", &n);
  scanf("%d%d%d", &kp, &tp, &kc);
  for (i = 0; i < n; i++) {
    scanf("%d", &tc[i]);
  }
  for (i = 0; i < n; i++)
    for (j = n - 1; j >= 0; j--) {
      if (tc[j] > tc[j - 1]) {
        temp = tc[j - 1];
        tc[j - 1] = tc[j];
        tc[j] = temp;
      }
    }
  temp = kc;
  sum = kp;
  ans = 0;
  for (i = 0; i < n; i++) {
    if (ans < (temp += tc[i]) / (sum += 2)) ans = (temp += tc[i]) / (sum += 2);
  }
  printf("%d\n", ans);
  return 0;
}
