#include <bits/stdc++.h>
using namespace std;
long long a[200005];
int func(long a, long long x, long long f) {
  if (a - x > 0) {
    int tem;
    tem = (a - x) / (f + x);
    if (tem * (f + x) == (a - x))
      return (a - x) / (f + x);
    else
      return (a - x) / (f + x) + 1;
  } else
    return 0;
}
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  long long x, f;
  cin >> x >> f;
  long long ans = 0;
  for (int i = 0; i < n; i++) {
    int tem = func(a[i], x, f);
    ans += tem;
  }
  cout << ans * f << endl;
  return 0;
}
