#include <bits/stdc++.h>
int n;
int input[200001];
int x, f;
long long ans;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", input + i);
  }
  scanf("%d %d", &x, &f);
  for (int i = 1; i <= n; i++) {
    if (input[i] > x) {
      ans += ((input[i] + f - 1) / (x + f)) * (long long)f;
    }
  }
  printf("%lld", ans);
  return 0;
}
