#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, x, f, i;
  long long int cost = 0;
  cin >> n;
  long long int arr[n];
  for (i = 0; i < n; i++) {
    cin >> arr[i];
  }
  cin >> x >> f;
  long long int tmp = f + x;
  for (i = 0; i < n; i++) {
    arr[i] -= x;
    if (arr[i] < 0) continue;
    cost += arr[i] / tmp;
    if (arr[i] % tmp != 0) cost++;
  }
  cout << cost * f;
  return 0;
}
