#include <bits/stdc++.h>
using namespace std;
long long sumdigits(long long n) {
  long long ans = 0;
  while (n > 0) {
    ans += n % 10;
    n = n / 10;
  }
  return ans;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  while (t--) {
    long long n, a, b, k;
    cin >> n >> a >> b >> k;
    long long h[n];
    for (int i = 0; i < n; i++) {
      cin >> h[i];
      h[i] %= (a + b);
      if (h[i] == 0) h[i] = a + b;
      long long v = h[i] / a;
      if (h[i] % a > 0) v += 1;
      h[i] = v - 1;
    }
    sort(h, h + n);
    int ans = 0;
    for (int i = 0; i < n; i++) {
      if (h[i] > k) {
        break;
      }
      ans += 1;
      k -= h[i];
    }
    cout << ans << "\n";
  }
  return 0;
}
