import sys input = sys.stdin.readline N, S, B = map(int, input().split()) H = list(map(int, input().split())) now_s = S now_h = H[0] for i in range(N-1): if now_s>0: now_h += now_s*B now_s = 0 if H[i]+S*B>now_h: now_h = H[i] now_s = S now_h += now_s*B now_s = 0 if now_h