import heapq N,A,B,X,Y = map(int,input().split()) H = list(map(int,input().split())) a = 0 H.sort(reverse=True) hq = H.copy() while a