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