#include <bits/stdc++.h>
using namespace std;
int cost(int hp, int a, int b) {
  hp = hp % (a + b);
  if (hp == 0) return (a + b - 1) / a;
  return (hp - 1) / a;
}
int main() {
  int n, a, b, k;
  cin >> n >> a >> b >> k;
  vector<int> arr(n);
  for (int i = 0; i < n; i++) cin >> arr[i];
  vector<int> cost_arr(n);
  for (int i = 0; i < n; i++) cost_arr[i] = cost(arr[i], a, b);
  sort(cost_arr.begin(), cost_arr.end());
  int res = 0;
  for (int i = 0; i < n; i++) {
    k -= cost_arr[i];
    if (k < 0) break;
    res += 1;
  }
  cout << res << endl;
}
