function Main(input) {
    input = input.split("\n");
    var line = input[0].split(" ");
    var num = parseInt(line[0]);
    var hi = parseInt(line[1]);
    var lo = parseInt(line[2]);
    var maxHP = 0;
    var maxInd = 0;
    var enm = [];
    var killcount = 0;
    var ans = 0;
    
    for(var i = 0; i<num; i++){
        enm[i] = parseInt(input[i+1]);
        if(enm[i] > maxHP){
            maxHP = enm[i];
            maxInd = i;
        }
    }
    
//    console.log(maxHP+" "+maxInd);

    while(1){
        ans++;
        
        for(var i = 0; i<num; i++){
            enm[i] -= lo;
            if(i === maxInd){
                enm[i] -= hi - lo;
                maxHP -= hi;
            }
            
            if(enm[i]<=0){
                killcount++;
            }
        }
        
        for(var i = 0; i<num; i++){
            if(enm[i] > maxHP){
                maxHP = enm[i];
                maxInd = i;
            }
        }        
        
        if(killcount >= num){
            break;
        }
    }

  
    console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));