#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  long long int n, a, b, k;
  cin >> n >> a >> b >> k;
  long long int h[n], c[n];
  for (long long int i = 0; i < n; i++) {
    cin >> h[i];
    h[i] = h[i] % (a + b);
    if (h[i] == 0) {
      h[i] = a + b;
    }
    c[i] = (h[i] - 1) / a;
  }
  sort(c, c + n);
  long long int sum = 0;
  for (long long int i = 0; i < n; i++) {
    if (k >= c[i]) {
      k = k - c[i];
      sum++;
    }
  }
  cout << sum << "\n";
  return 0;
}
