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