#include <bits/stdc++.h>
using namespace std;
int main() {
  int p = 0;
  long long col = 0;
  int ost = 0;
  int s[200000]{};
  int N = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> s[i];
  }
  int x, f;
  cin >> x;
  cin >> f;
  for (int i = 0; i < N; i++) {
    p = 0;
    if (s[i] > x) {
      if (s[i] > (x + f)) {
        p = s[i] / (x + f);
        if ((s[i] % (x + f)) > x) p = p + 1;
      } else {
        p = p + 1;
      }
    }
    col = col + p;
  }
  cout << col * f;
  return 0;
}
