#include <bits/stdc++.h>
using namespace std;
long long const max1 = 1e5 + 5;
long long const mod = 1e9 + 7;
long long inf = 1e18;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long t = 1;
  while (t--) {
    long long n, a, b, k;
    cin >> n >> a >> b >> k;
    long long temp[n];
    for (long long i = 0; i < n; i++) {
      cin >> temp[i];
    }
    vector<long long> x;
    long long d = a + b;
    for (long long i = 0; i < n; i++) {
      long long s = temp[i] % d;
      if (temp[i] % d == 0) {
        s += d;
      }
      if (s <= a) {
        x.push_back(0);
      } else {
        s = s - a;
        long long m = s / a;
        if (s % a != 0) {
          m++;
        }
        x.push_back(m);
      }
    }
    sort(x.begin(), x.end());
    long long ans = 0;
    long long i = 0;
    while (i < n) {
      k -= x[i];
      if (k < 0) {
        break;
      }
      ans++;
      i++;
    }
    cout << ans;
  }
}
