import sys line = input().split(" ") monster_num = int(line[0]) a_magic_num = int(line[1]) b_magic_num = int(line[2]) a_magic_damage = int(line[3]) b_magic_damage = int(line[4]) line = input().split(" ") monster_hp_list = list() for monster_hp in line: if not monster_hp == "": monster_hp_list.append(int(monster_hp)) # A Magic for i in range(a_magic_num): max_value = max(monster_hp_list) max_index = monster_hp_list.index(max_value) monster_hp_list[max_index] = \ max(0, monster_hp_list[max_index] - a_magic_damage) if max(monster_hp_list) == 0: print("Yes") sys.exit() # B Magic monster_counter = 0 for i in range(b_magic_num): b_magic_remaining = b_magic_damage while b_magic_remaining > 0: if b_magic_remaining < monster_hp_list[monster_counter]: monster_hp_list[monster_counter] -= b_magic_remaining b_magic_remaining = 0 elif b_magic_remaining == monster_hp_list[monster_counter]: monster_hp_list[monster_counter] = 0 b_magic_remaining = 0 monster_counter += 1 else: buf = monster_hp_list[monster_counter] monster_hp_list[monster_counter] = 0 b_magic_remaining -= buf monster_counter += 1 if monster_counter == monster_num: print("Yes") sys.exit() print("No")