#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, i, j, k, l, m, b, t, sum, sum1, flag, max1, min1, tmp;
  cin >> n;
  long long a[n + 1];
  vector<long long> v;
  queue<long long> q;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    v.push_back(a[i]);
    q.push(a[i]);
  }
  cin >> m >> k;
  j = m + k;
  sum = 0;
  for (i = 1; i <= n; i++) {
    l = a[i] / j;
    sum1 = a[i] % j;
    sum += l;
    if (sum1 > m) {
      sum++;
    }
  }
  cout << sum * k << endl;
}
