#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, k, i;
  int total = 0;
  cin >> n >> a >> b >> k;
  vector<int> h(n);
  for (i = 0; i < n; i++) {
    cin >> h[i];
    h[i] = h[i] % (a + b);
    if (h[i] == 0) {
      h[i] = h[i] + a + b;
    }
    h[i] = ((h[i] + a - 1) / a) - 1;
  }
  sort(h.begin(), h.end());
  for (i = 0; i < n; i++) {
    if (k - h[i] < 0) {
      break;
    }
    ++total;
    k = k - h[i];
  }
  cout << total;
}
