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