#include <bits/stdc++.h>
using namespace std;
int cnt[200005];
int main() {
  int n, a, b, k, h, sum, t;
  while (~scanf("%d %d %d %d", &n, &a, &b, &k)) {
    int c = 0;
    for (int i = 1; i <= n; i++) {
      scanf("%d", &h);
      c = h % (a + b);
      if (c <= a) {
        if (c == 0) {
          cnt[i] = (0 + a + b - 1) / a;
        } else
          cnt[i] = 0;
      } else
        cnt[i] = (c - 1) / a;
    }
    sort(cnt + 1, cnt + 1 + n), sum = 0, t = 0;
    for (int i = 1; i <= n; i++) {
      if (sum + cnt[i] <= k) {
        sum += cnt[i];
        t = i;
      } else
        break;
    }
    printf("%d\n", t);
  }
  return 0;
}
