#include <bits/stdc++.h>
using namespace std;
int n, i, a[200005], x, f;
long long ans;
int main() {
  scanf("%d", &n);
  for (i = 1; i <= n; i++) scanf("%d", &a[i]);
  scanf("%d %d", &x, &f);
  for (i = 1; i <= n; i++) ans += (a[i] + f - 1) / (x + f);
  cout << ans * f;
}
