def main(): n, a, b, x, y = map(int, input().split()) H = list(map(int, input().split())) import heapq def is_ok(k): q = [0]*n for i, h in enumerate(H): q[i] = min(0, k-h) heapq.heapify(q) for i in range(a): v = heapq.heappop(q) v = -v v -= x heapq.heappush(q, -v) s = 0 while q: v = heapq.heappop(q) v = -v s += max(v, 0) return s <= y*b ng = -1 ok = max(H) while ng+1