#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <queue>
#include <string>
using namespace std;
 
int N;
int test[1000010];
int super, sub;
long long ans;
 
int main(void)
{
//    freopen("B13458_input.txt", "r", stdin);
    
    cin >> N;
    
    for(int i = 1; i <= N; i++)
    {
        cin >> test[i];    
    }
    
    cin >> super >> sub;
    
    for(int i = 1; i <= N; i++)
    {
        test[i] -= super;
        ans++;
    }
    
    for(int i = 1; i <= N; i++)
    {
        if(test[i] <= 0)
        {
            continue;
        }
        else
        {
            if(test[i] % sub == 0)
            {
                ans += test[i] / sub;
            }
            else
            {
                ans += test[i] / sub + 1;
            }
        }
    }
    
    cout << ans;
    
    return 0;
}
cs

+ Recent posts