#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout << setprecision(10) << fixed;
  long long int n, a, b, k;
  cin >> n >> a >> b >> k;
  vector<long long int> v;
  long long int t;
  long long int c = 0;
  for (long long int i = 0; i < n; i++) {
    cin >> t;
    if (t % (a + b) <= a && t % (a + b) != 0)
      c++;
    else {
      long long int t1 = t % (a + b);
      if (t1 == 0) t1 = a + b;
      t1 = (t1 + a - 1) / a;
      v.push_back(t1 - 1);
    }
  }
  sort(v.begin(), v.end());
  for (long long int i = 0; i < v.size(); i++) {
    if (v[i] <= k) {
      c++;
      k -= v[i];
    }
  }
  cout << c << endl;
  return 0;
}
