#include <bits/stdc++.h>
using namespace std;
int N;
int A, B, C, D[100] = {};
int solve(int t, int cal, int total) {
  if (t == N) {
    return (C + cal) / (A + B * total);
  }
  return max(solve(t + 1, cal, total), solve(t + 1, cal + D[t], total + 1));
}
int main() {
  cin >> N >> A >> B >> C;
  for (int i = 0; i < N; i++) {
    cin >> D[i];
  }
  cout << solve(0, 0, 0) << endl;
  return 0;
}
