Alice and her younger brother Bob are playing a game called, "Slay the Dragon". This game involves killing N dragons, ith dragon has Hi health points, initially positive for all i. A dragon is considered dead if Hi≤0 and the person who lands the killing shot to the ith dragon earns Ci currency. Shooting the ith dragon with force F reduces Hi by F. The two players take turns alternately, starting with Alice. A person can also choose to forgo any turn (effectively shooting an arbitrary dragon with zero force). The aim of the game is to maximize currency and the game ends when all dragons are dead.
Bob, being an inexperienced, little boy, hits the first undead dragon (least i such that Hi>0) with force FBob on every single turn he gets. Alice realizes that this is not the optimal strategy for winning. She hits an optimally chosen dragon (any i such that Hi>0) with force FAlice, during her turns. Also, she chooses to forgo some of her turns strategically unlike her brother.
How much currency can Bob earn if Alice plays optimally?
Input Format
First-line contains N,FBob,FAlice.
Second-line contains N integers denoting H.
Third-line contains N integers denoting C.
Output Format
Print the amount of currency Bob earns.
Constraints
1≤N≤100010≤FBob,FAlice,Hi≤1001≤Ci≤105