#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, k;
  cin >> n >> a >> b >> k;
  int aa[n + 5];
  for (int i = 0; i < n; i++) cin >> aa[i];
  int tot = a + b;
  int win = 0;
  vector<int> serial;
  for (int i = 0; i < n; i++) {
    int now = aa[i];
    if (now <= a) {
      win++;
    } else if (now <= tot) {
      now = now - a;
      int temp = now / a;
      if (temp * a < now) {
        temp++;
      }
      serial.push_back(temp);
    } else {
      int temp = now / tot;
      if (temp * tot == now) {
        now = now - (tot * (temp - 1)) - a;
        int temp2 = now / a;
        if (temp2 * a < now) {
          temp2++;
        }
        serial.push_back(temp2);
      } else {
        int extra = now - (temp * tot) - a;
        if (extra <= 0) {
          win++;
        } else {
          int temp2 = extra / a;
          if (temp2 * a < extra) {
            temp2++;
          }
          serial.push_back(temp2);
        }
      }
    }
  }
  sort(serial.begin(), serial.end());
  for (int i = 0; i < serial.size(); i++) {
    if (serial[i] <= k) {
      k = k - serial[i];
      win++;
    } else {
      break;
    }
  }
  cout << win << endl;
}
