P19544 [HackerEarth] Oz plays popular MMORPG Dota2. Invoker is one of the favourite Oz's heroes. Oz's skills are not perfect yet, so he uses only two spells - SunStrike and Tornado. Each of these spells take
普及-
题目描述

Oz plays popular MMORPG Dota2. Invoker is one of the favourite Oz's heroes. Oz's skills are not perfect yet, so he uses only two spells - SunStrike and Tornado. Each of these spells takes some mana points to cast and may be used several times. Oz uses the spells to kill neutral creeps in the map. The creeps are placed at line OX, you may assume that each creep is a single point on the line.
When Oz uses SunStrike, he kills all creeps placed on single point. When Tornado is used then it kills all creeps on a line segment (including creeps placed on the ends of the segment). Oz may cast spells in arbitrary order and may use them at any place of the line, however the length of Tornado segment is fixed. Help Oz to Find, what is the minimum amount of mana points he should spend to kill all the creeps.

Input :
The first line contains three integers Ms,Mt and Lt - Number of mana points a single SunStrike takes, Number of mana points a single Tornado takes and length of Tornado segment. The second line contains a single integer N - amount of creeps in the line. The next line contains N non-negative integers x1,x2,...,xN - coordinates of creeps on the line.

Output :
Output a single number - minimal amount of mana points necessary to kill all the creeps.

Constraints :
1 ≤ Ms, Mt, Lt ≤ 100
1 ≤ N ≤ 100
0 ≤ x1,x2,...,xN ≤ 1000

SAMPLE INPUT
2 3 3
3
1 3 5

SAMPLE OUTPUT
5

输入格式

见题面

输出格式

见题面

样例输入
100 8 1 99 154 787 793 952 180 916 905 333 61 114 972 106 811 760 183 883 961 912 207 691 687 198 819 55 590 513 709 999 386 653 557 813 478 517 80 117 40 445 695 682 341 798 457 440 65 391 456 819 388 869 890 120 210 383 601 208 569 165 111 903 540 301 328 562 849 135 964 869 701 165 86 627 991 537 706 587 255 977 480 937 512 39 546 920 196 586 607 626 810 739 973 942 627 708 573 9 582 756 507
样例输出
5