#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int a[n];
  for (long long int i = 0; i < n; i++) {
    cin >> a[i];
  }
  long long int x, f, sum = 0;
  cin >> x >> f;
  for (long long int i = 0; i < n; i++) {
    if ((a[i] - x) > 0) {
      long long int val = (a[i] - x) / (x + f);
      long long int rem = ((a[i] - x)) % (x + f);
      sum += ((val)*f);
      if (rem > 0) sum += f;
    }
  }
  cout << sum << endl;
}
