#include <bits/stdc++.h>
using namespace std;
int ans, n, a, b, c, piza[105];
int po(int x, int sum, int k) {
  if (x == n)
    return (c + sum) / (a + (b * k));
  else {
    ans = max(ans, po(x + 1, sum + piza[x], k + 1));
    ans = max(ans, po(x + 1, sum, k));
  }
  return ans;
}
int main() {
  cin >> n >> a >> b >> c;
  for (int i = 0; i < n; i++) cin >> piza[i];
  cout << po(0, 0, 0) << endl;
  return 0;
}
