#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cout << fixed;
  cout.precision(10);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  int x, f;
  cin >> x >> f;
  sort(a.begin(), a.end());
  long long res = 0;
  for (int i = n - 1; i >= 0; --i) {
    if (a[i] <= x) break;
    int r = (a[i] - x) / (f + x);
    if ((a[i] - x) % (f + x)) r++;
    res += 1LL * r * f;
  }
  cout << res;
  return 0;
}
