Problem: In the year 2020, a race of atomically energized cars will be held. Unlike today’s car races, fueling is not a concern of racing teams. Cars can run throughout the course without any refueling. Instead, the critical factor is tire (tyre). Teams should carefully plan where to change tires of their cars.

The race is a road race having n checkpoints in the course. Their distances from the start are a1, a2, ... , and an (in kilometers). The n-th checkpoint is the goal. At the i-th checkpoint (i < n), tires of a car can be changed. Of course, a team can choose whether to change or not to change tires at each checkpoint. It takes b seconds to change tires (including overhead for braking and accelerating). There is no time loss at a checkpoint if a team chooses not to change tires.

A car cannot run fast for a while after a tire change, because the temperature of tires is lower than the designed optimum. After running long without any tire changes, on the other hand, a car cannot run fast because worn tires cannot grip the road surface well. The time to run an interval of one kilometer from x to x + 1 is given by the following expression (in seconds). Here x is a nonnegative integer denoting the distance (in kilometers) from the latest checkpoint where tires are changed (or the start). r, v, e and f are given constants.


1/(v - e × (x - r)) (if x ≥ r)
1/(v - f × (r - x)) (if x < r)


Your mission is to write a program to determine the best strategy of tire changes which minimizes the total time to the goal.



Input

The input consists of multiple datasets each corresponding to a race situation. The format of a dataset is as follows.


n
a1 a2 . . . an
b
r v e f


The meaning of each of the input items is given in the problem statement. If an input line contains two or more input items, they are separated by a space.

n is a positive integer not exceeding 100. Each of a1, a2, ... , and an is a positive integer satisfying 0 < a1 < a2 < . . . < an ≤ 10000. b is a positive decimal fraction not exceeding 100.0. r is a nonnegative integer satisfying 0 ≤ r ≤ an - 1. Each of v, e and f is a positive decimal fraction. You can assume that v - e × (an - 1 - r) ≥ 0.01 and v - f × r ≥ 0.01.

The end of the input is indicated by a line with a single zero.

Output

For each dataset in the input, one line containing a decimal fraction should be output. The decimal fraction should give the elapsed time at the goal (in seconds) when the best strategy is taken. An output line should not contain extra characters such as spaces.

The answer should not have an error greater than 0.001. You may output any number of digits after the decimal point, provided that the above accuracy condition is satisfied.

Example

Input

2
2 3
1.0
1 1.0 0.1 0.3
5
5 10 15 20 25
0.15
1 1.0 0.04 0.5
10
1783 3640 3991 4623 5465 5481 6369 6533 6865 8425
4.172
72 59.4705 0.0052834 0.0611224
0


Output

3.5397
31.9249
168.6682

Solution (in CPP):

Solution:
#include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
#include<iomanip>
#include<cassert>
#include<queue>
#include<map>
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define MAX 101
#define inf (1<<29)
using namespace std;
int a[MAX];
int A[10001];
int n;
double b,r,v,e,f;
double mincost[MAX][10001];

struct P
{
  int last;
  double x,cost,now;
  P(double now=-1,double x=-1,double cost=-1,int last=-1):now(now),x(x),cost(cost),last(last){}
  bool operator < (const P &a)const
  {
    return cost >= a.cost;
  }
};

double getCost(double x)
{
  if(x >= r)return 1.0/(v - e * (x - r));
            return 1.0/(v - f * (r - x));    
}

void dijkstra()
{
  double ans = inf;
  rep(i,n)rep(j,10001)mincost[i][j] = inf;
  mincost[0][0] = 0;

  priority_queue<P> Q;
  Q.push(P(0,0,0,0));

  while(!Q.empty())
    {
      P p = Q.top(); Q.pop();
      if(p.now >= a[n-1])
	{
	  ans = min(ans,p.cost);
	  continue;
	}    

      if(ans <= p.cost)continue;

      assert(0 <= p.cost);
      double ncost = p.cost + getCost(p.x);
      assert(0 <= ncost);

      if(mincost[p.last][(int)p.now+1] > ncost)
	{
	  mincost[p.last][(int)p.now+1] = ncost;
	  Q.push(P(p.now+1,p.x+1,ncost,p.last));
	}

      if(A[(int)p.now+1] != -1)
	{
	  double change_cost = (A[(int)p.now+1]==n?0:b);
	  ncost += change_cost;
	  Q.push(P(p.now+1,0,ncost,A[(int)p.now+1]));
	}

    }

  cout << setiosflags(ios::fixed) << setprecision(4) << ans << endl;
}

int main()
{
  while(cin >> n,n)
    {
      rep(i,10001)A[i] = -1;
      rep(i,n)
	{
	  cin >> a[i];	 
	  A[a[i]] = i+1; 
	}
      cin >> b >> r >> v >> e >> f;
   

      dijkstra();

    }
  return 0;
}