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