#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, a, b, k;
  cin >> n >> a >> b >> k;
  vector<long long> h(n);
  for (long long i = 0; i < n; i++) {
    cin >> h[i];
  }
  vector<long long> vv;
  long long ans = 0;
  long long d = a + b;
  for (long long i = 0; i < n; i++) {
    long long z;
    if (h[i] % d == 0) {
      long long mm = (h[i] % d) + d;
      z = ((mm + a - 1) / a) - 1;
    } else {
      long long mm = h[i] % d;
      z = (mm + a - 1) / a - 1;
    }
    vv.push_back(z);
  }
  sort(vv.begin(), vv.end());
  for (long long i = 0; i < vv.size(); i++) {
    if (k - vv[i] < 0) break;
    ans++;
    k -= vv[i];
  }
  cout << ans;
}
