#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, a, b, k, f, res, x, cnt = 0;
  cin >> n >> a >> b >> k;
  vector<long long> v;
  for (long long i = 0; i < n; i++) {
    cin >> f;
    res = f % (a + b);
    if (res and res <= a)
      cnt++;
    else if (!res) {
      x = b;
      x = (b / a);
      if (b % a) x++;
      v.push_back(x);
    } else {
      x = f % (a + b);
      x = x / a;
      if (res % a) x++;
      x--;
      v.push_back(x);
    }
  }
  sort(v.begin(), v.end());
  for (long long i = 0; i < v.size(); i++) {
    if (k < v[i]) break;
    cnt++, k -= v[i];
  }
  cout << cnt << "\n";
  return 0;
}
