#include <bits/stdc++.h>
int main() {
  long n;
  scanf("%ld", &n);
  std::vector<long long> a(n);
  for (long p = 0; p < n; p++) {
    scanf("%lld", &a[p]);
  }
  long long x, f;
  scanf("%lld %lld", &x, &f);
  long long fee(0);
  for (long p = 0; p < n; p++) {
    fee += f * ((a[p] + f - 1) / (x + f));
  }
  printf("%lld\n", fee);
  return 0;
}
