#include <bits/stdc++.h>   using namespace std;   int main() {     long long n;     cin >> n;     long long a[n + 10];     for (int i = 1; i <= n; ++i) scanf( %lld , &a[i]);     long long x, y;     cin >> x >> y;     long long h = x + y;     long long sum = 0;     for (int i = 1; i <= n; ++i) {       sum = sum + y * (a[i] / (h));       a[i] = a[i] % h;       if (a[i] > x) sum += y;     }     cout << sum;     return 0;   }   