#include <bits/stdc++.h>
using namespace std;
int Max = 2e5 + 10;
int main() {
  int n, a, b, k;
  cin >> n >> a >> b >> k;
  int hit[Max];
  for (int i = 0; i < n; i++) {
    int t;
    cin >> t;
    hit[i] = ((t - 1) % (a + b)) / a;
  }
  int sum = 0;
  int hp = 0;
  sort(hit, hit + n);
  for (int i = 0; i < n; i++)
    if (hp + hit[i] <= k) {
      sum++;
      hp += hit[i];
    } else
      break;
  cout << sum;
  return 0;
}
