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