#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long MAX = 1e7 + 10;
const long long intmax = INT_MAX;
const long long intmin = INT_MIN;
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long m;
  cin >> m;
  vector<long long> arr(m);
  for (long long i = 0; i < m; i += 1) cin >> arr[i];
  long long n, f;
  cin >> n >> f;
  long long ans = 0;
  for (long long i = 0; i < m; i += 1) {
    long long a = (arr[i] / (n + f));
    long long b = (arr[i] % (n + f));
    if (b > n) {
      a += (b - n + f - 1) / f;
    }
    ans += f * a;
  }
  cout << ans << "\n";
  return 0;
}
