#include <bits/stdc++.h>
using namespace std;
int n, a, b, k;
int x, ans, num;
int sum[200011], tot;
int read() {
  int _ = 0, __ = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') __ = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    _ = _ * 10 + ch - '0';
    ch = getchar();
  }
  return _ * __;
}
int main() {
  n = read();
  a = read();
  b = read();
  k = read();
  tot = 0;
  for (int i = 1; i <= n; i++) {
    x = read();
    num = x % (a + b);
    if (num <= a && num > 0)
      ans++;
    else {
      if (num == 0)
        num = b;
      else if (num > a)
        num -= a;
      sum[++tot] = num / a + 1;
      if (num % a == 0) sum[tot]--;
    }
  }
  sort(sum + 1, sum + tot + 1);
  for (int i = 1; i <= tot; i++) {
    if (k >= sum[i]) {
      ans++;
      k -= sum[i];
    }
  }
  printf("%d\n", ans);
  return 0;
}
