#include <bits/stdc++.h>
using namespace std;
void runTest() {
  long long int n, a, b, k;
  cin >> n >> a >> b >> k;
  long long int ans = 0;
  vector<long long int> v;
  for (long long int i = 0; i < n; i++) {
    long long int val;
    cin >> val;
    long long int temp =
        ((val % (a + b) == 0) ? (val / (a + b)) - 1 : val / (a + b));
    temp *= (a + b);
    temp = val - temp;
    temp = ((temp - 1) / a) + 1;
    temp--;
    if (temp <= 0)
      ans++;
    else
      v.push_back(temp);
  }
  sort(v.begin(), v.end());
  for (auto i : v) {
    if (k >= i) {
      ans++;
      k -= i;
    }
  }
  cout << ans << "\n";
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t = 1;
  while (t--) runTest();
  return 0;
}
