#include <bits/stdc++.h>
using namespace std;
const long long maxn = 200010;
const long long INF = 2147483647;
inline long long read() {
  long long x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 3) + (x << 1) + ch - '0';
    ch = getchar();
  }
  return x * f;
}
inline void write(long long x) {
  if (x < 0) {
    putchar('-');
    x = -x;
  }
  if (x > 9) {
    write(x / 10);
  }
  putchar(x % 10 + '0');
}
long long n, k, cnt, res, cur, flag;
long long a[maxn], b[maxn];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  cin >> k >> cnt;
  for (int i = 1; i <= n; i++) {
    if (a[i] > k)
      b[i] = a[i];
    else
      continue;
    res += ceil(((double)(a[i] - k)) / (k + cnt));
  }
  cout << (res)*cnt << endl;
  return 0;
}
