#include <bits/stdc++.h>
using namespace std;
const long long inf = 0x3f3f3f3f;
template <typename S, typename T>
ostream& operator<<(ostream& out, pair<S, T> const& p) {
  out << '(' << p.first << ", " << p.second << ')';
  return out;
}
template <typename T>
ostream& operator<<(ostream& out, vector<T> const& v) {
  long long l = v.size();
  for (long long i = 0; i < l - 1; i++) out << v[i] << ' ';
  if (l > 0) out << v[l - 1];
  return out;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, a, b, k;
  cin >> n >> a >> b >> k;
  vector<int> v(n);
  for (int i = 0; i < n; ++i) {
    int h;
    cin >> h;
    int q;
    if ((h % (a + b)) == 0)
      q = h / (a + b) - 1;
    else
      q = h / (a + b);
    h -= q * (a + b);
    h -= a;
    if (h <= 0)
      v[i] = 0;
    else {
      if (h % a == 0)
        v[i] = h / a;
      else
        v[i] = (h / a) + 1;
    }
  }
  sort(v.begin(), v.end());
  int points(0);
  long long sum = 0;
  for (int i = 0; i < n; ++i) {
    if (sum + v[i] > k)
      break;
    else {
      points++;
      sum += v[i];
    }
  }
  cout << points << endl;
}
