#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int n, a, b, k;
  cin >> n >> a >> b >> k;
  long long int* arr = new long long int[n];
  for (long long int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  for (long long int i = 0; i < n; i++) {
    long long int times = arr[i] / (a + b);
    if (arr[i] % (a + b) == 0) {
      times--;
      arr[i] = arr[i] - times * (a + b);
      if (arr[i] % a == 0) {
        arr[i] = arr[i] / a - 1;
      } else {
        arr[i] = arr[i] / a;
      }
    } else {
      arr[i] = arr[i] - times * (a + b);
      if (arr[i] % a == 0) {
        arr[i] = arr[i] / a - 1;
      } else {
        arr[i] = arr[i] / a;
      }
    }
  }
  sort(arr, arr + n);
  long long int ans = 0;
  for (long long int i = 0; i < n; i++) {
    k = k - arr[i];
    if (k < 0) {
      break;
    }
    ans++;
  }
  cout << ans << endl;
  return 0;
}
