#include <bits/stdc++.h>
using namespace std;
void RAJ_MEHTA_IS_PRO() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  int x, first;
  cin >> x >> first;
  long long int sum = 0;
  for (int i = 0; i < n; i++) sum += (a[i] + first - 1) / (x + first);
  cout << sum * first << "\n";
}
int main() {
  int t = 1;
  while (t--) {
    RAJ_MEHTA_IS_PRO();
  }
  return 0;
}
