#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t n, a, b, k, ans = 0;
  cin >> n >> a >> b >> k;
  int64_t cnt = 0, num[n], hp, tmp;
  for (int i = 0; i < n; i++) {
    cin >> hp;
    if (hp % (a + b))
      hp %= (a + b);
    else
      hp = a + b;
    if (a < hp) {
      if (hp % a)
        num[cnt++] = hp / a;
      else
        num[cnt++] = hp / a - 1;
    } else
      ans++;
  }
  sort(num, num + cnt);
  for (int i = 0; i < cnt; i++) {
    k -= num[i];
    if (k < 0) break;
    ans++;
  }
  cout << ans << endl;
}
