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