#include <bits/stdc++.h>
using namespace std;
int main() {
  long long count, x, f, total = 0;
  std::cin >> count;
  long long a[count];
  for (long long i = 0; i < count; i++) {
    std::cin >> a[i];
  }
  std::cin >> x >> f;
  for (long long i = 0; i < count; i++) {
    total += a[i] / (f + x);
    if (a[i] % (x + f) > x) total++;
  }
  std::cout << total * f << '\n';
}
