def resolve(): n,m,x,y = map(int,input().split()) an = map(int,input().split()) notdelete = [] select = [] for a in an: if a>=x: notdelete.append(a) elif a>y: select.append(a) if len(notdelete)>m: print('Handicapped') return select.sort(reverse=True) print(sum(notdelete)+sum(select[:m-len(notdelete)])) resolve()