#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int n, x, y, k;
  cin >> n >> x >> y >> k;
  int a[n];
  for (int i = 0; i < n; ++i) {
    int b;
    cin >> b;
    b %= (x + y);
    if (b <= x) {
      if (b == 0) {
        a[i] = (y + x - 1) / x;
      } else
        a[i] = 0;
    } else {
      b -= x;
      a[i] = (b + x - 1) / x;
    }
  }
  sort(a, a + n);
  int ans = 0;
  for (int i = 0; i < n; ++i) {
    k -= a[i];
    if (k < 0) break;
    ++ans;
  }
  cout << ans;
}
