#include <bits/stdc++.h>
using namespace std;
void Solve() {
  long long n, x, f;
  cin >> n;
  long long arr[n], b[n];
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  cin >> x >> f;
  long long sum = 0;
  for (int i = 0; i < n; ++i) {
    if (arr[i] > x) {
      long long num = (arr[i] - x) / (x + f);
      if ((arr[i] - x) % (x + f) != 0) {
        ++num;
      }
      sum += (num * f);
    }
  }
  cout << sum << "\n";
}
int main() {
  int t = 1;
  while (t--) {
    Solve();
  }
}
