#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  ;
  vector<long long> v(n);
  for (long long i = 0; i < n; i++) cin >> v[i];
  long long x, f;
  cin >> x >> f;
  long long ans = 0;
  for (long long i = 0; i < n; i++) {
    if (v[i] > x) {
      long long a = x + f;
      ans += v[i] / a;
      long long b = v[i] % a;
      if (b > x) ans++;
    }
  }
  cout << ans * f << "\n";
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) solve();
  return 0;
}
