#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, n, k, x, totalPower, cnt = 0, cost, i, arr[200005];
  cin >> n >> a >> b >> k;
  totalPower = a + b;
  for (i = 0; i < n; i++) {
    scanf("%d", &x);
    x %= totalPower;
    if (!x) x = totalPower;
    arr[i] = x;
  }
  sort(arr, arr + n);
  for (i = 0; i < n; i++) {
    if (arr[i] <= 0)
      cnt++;
    else {
      cost = arr[i] / a;
      if (cost * a == arr[i]) cost--;
      if (cost <= k) {
        cnt++;
        k -= cost;
      } else
        break;
    }
  }
  cout << cnt << '\n';
  return 0;
}
