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