There is a dice with N sides, which are numbered from 1,2,...,n and have the equal possibility to show up when one rolls a dice. Each side has an integer A_{i} on it. Now here is a game that you can roll this dice once, if the i-th side is up, you will get A_{i} yuan. What's more, some sids of this dice are colored with a special different color. If you turn this side up, you will get once more chance to roll the dice. When you roll the dice for the second time, you still have the opportunity to win money and rolling chance. Now you need to calculate the expectations of money that we get after playing the game once.

Input consists of multiple cases. Each case includes two lines. End with EOF.

The first line is an integer N (2<=N<=200), following with N integers A_{i}(0<=A_{i}<200)

The second line is an integer M (0<=M<=N), following with m integers B_{i}(1<=B_{i}<=n), which are the numbers of the special sides to get another more chance.

The first line is an integer N (2<=N<=200), following with N integers A

The second line is an integer M (0<=M<=N), following with m integers B

提交代码