#include <bits/stdc++.h>
using namespace std;
const int maxn = 200010;
int a[maxn];
int main() {
  int n;
  while (scanf("%d", &n) != EOF) {
    for (int i = 1; i <= n; ++i) {
      scanf("%d", &a[i]);
    }
    int x, f;
    scanf("%d%d", &x, &f);
    int temp = x + f;
    long long int cnt = 0;
    for (int i = 1; i <= n; ++i) {
      int tt = a[i] % temp;
      if (tt == 0)
        cnt += a[i] / temp;
      else if (tt > x && tt < temp)
        cnt += (a[i] / temp + 1);
      else
        cnt += a[i] / temp;
    }
    printf("%I64d\n", cnt * f);
  }
  return 0;
}
