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