#include <bits/stdc++.h>
using namespace std;
long long n, a, b, c;
long long data[101];
long long dp[101][101];
int main() {
  cin >> n;
  cin >> a >> b >> c;
  for (long long i = 1; i <= n; i++) {
    cin >> data[i];
  }
  for (long long i = 0; i <= n; i++) {
    dp[i][0] = dp[0][i] = c;
  }
  for (long long i = 1; i <= n; i++) {
    for (long long j = 1; j <= n; j++) {
      long long t1 = (dp[i - 1][j - 1] + data[i]) / (a + b * j);
      dp[i][j] = dp[i - 1][j - 1] + data[i];
    }
  }
  long long ans = 0;
  for (long long i = 0; i <= n; i++) {
    ans = max(ans, dp[n][i] / (a + b * i));
  }
  cout << ans << endl;
  return 0;
}
