function main(data){
    input = data.split("\n");
    temp = input[0].split(" ");
    len = temp[0];
    a = temp[1];
    b = temp[2];
    list = [];
    count = 0;
    
    for(i = 1; i <= len; i += 1){
        list.push(parseInt(input[i],10));
    }
    
    while(true){
        max = 0;
        index = -1;
        num  = 0;
        count += 1;
        len = list.length;
        for(i = 0; i < len; i+=1){
            if(max < list[i]){
                max = list[i];
                index = i;
            }
        }
        
        for(i = 0; i < len; i+=1){
            if(index === i){
                list[i] -= a;
            }else{
                list[i] -= b;
            }
            list[i] = list[i] <= 0? 0: list[i];
        }
        
        for(i = 0; i < len; i += 1){
            if(list[i] === 0){
                num += 1;
            }
        }
        if(num === len){
            console.log(count)
            break;
        }
    }
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));