Problem: Benjamin Forest VIII is a king of a country. One of his best friends Nod lives in a village far from his castle. Nod gets seriously sick and is on the verge of death. Benjamin orders his subordinate Red to bring good medicine for him as soon as possible. However, there is no road from the castle to the village. Therefore, Red needs to climb over mountains and across canyons to reach the village. He has decided to get to the village on the shortest path on a map, that is, he will move on the straight line between the castle and the village. Then his way can be considered as polyline with n points (x1, y1) . . . (xn , yn ) as illustlated in the following figure.

<image>

Figure 1: An example route from the castle to the village

Here, xi indicates the distance between the castle and the point i, as the crow flies, and yi indicates the height of the point i. The castle is located on the point (x1 , y1 ), and the village is located on the point (xn , yn).

Red can walk in speed vw . Also, since he has a skill to cut a tunnel through a mountain horizontally, he can move inside the mountain in speed vc.

Your job is to write a program to the minimum time to get to the village.



Input

The input is a sequence of datasets. Each dataset is given in the following format:


n
vw vc
x1 y1
...
xn yn


You may assume all the following: n ≤ 1,000, 1 ≤ vw, vc ≤ 10, -10,000 ≤ xi, yi ≤ 10,000, and xi < xj for all i < j.

The input is terminated in case of n = 0. This is not part of any datasets and thus should not be processed.

Output

For each dataset, you should print the minimum time required to get to the village in a line. Each minimum time should be given as a decimal with an arbitrary number of fractional digits and with an absolute error of at most 10-6 . No extra space or character is allowed.

Example

Input

3
2 1
0 0
50 50
100 0
3
1 1
0 0
50 50
100 0
3
1 2
0 0
50 50
100 0
3
2 1
0 0
100 100
150 50
6
1 2
0 0
50 50
100 0
150 0
200 50
250 0
0


Output

70.710678
100.000000
50.000000
106.066017
150.000000

Solution (in CPP):

Solution:
#include<cmath>
#include<queue>
#include<cstdio>
#include<algorithm>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;

const double EPS=1e-7;
const double INF=1e77;

struct point{
	double x,y;
	point():x(0),y(0){}
	point(double x,double y):x(x),y(y){}
	point operator+(const point &a)const{ return point(x+a.x,y+a.y); }
	point operator-(const point &a)const{ return point(x-a.x,y-a.y); }
	bool operator< (const point &a)const{ return x+EPS<a.x || abs(x-a.x)<EPS && y+EPS<a.y; }
};

point operator*(double c,const point &a){ return point(c*a.x,c*a.y); }

double dot(const point &a,const point &b){ return a.x*b.x+a.y*b.y; }

double cross(const point &a,const point &b){ return a.x*b.y-a.y*b.x; }

double abs(const point &a){ return sqrt(a.x*a.x+a.y*a.y); }

struct line{
	point a,b;
	line(const point &a,const point &b):a(a),b(b){}
};

struct segment{
	point a,b;
	segment(const point &a,const point &b):a(a),b(b){}
};

bool cover(const segment &S,const point &p){
	return abs(cross(S.a-p,S.b-p))<EPS && dot(S.a-p,S.b-p)<EPS;
}

point get_intersect(const line &L1,const line &L2){
	double a1=cross(L1.b-L1.a,L2.b-L2.a);
	double a2=cross(L1.b-L1.a,L1.b-L2.a);
	if(abs(a1)<EPS) return L1.a;
	return L2.a+a2/a1*(L2.b-L2.a);
}

struct edge{ int v; double cost; };

int main(){
	for(int n;scanf("%d",&n),n;){
		double v1,v2; scanf("%lf%lf",&v1,&v2);
		point p[2000];
		rep(i,n) scanf("%lf%lf",&p[i].x,&p[i].y);

		vector<edge> G[2000];
		int n2=0;
		rep(i,n){
			// dig right
			if(i<n-1 && p[i].y<p[i+1].y){
				int j=i+1;
				while(j<n && p[i].y<p[j].y) j++;
				if(j<n){
					p[n+n2]=get_intersect(line(p[j-1],p[j]),line(p[i],p[i]+point(1,0)));
					G[i].push_back((edge){n+n2,abs(p[i]-p[n+n2])/v2});
					n2++;
				}
			}
			// dig left
			if(i>0 && p[i].y<p[i-1].y){
				int j=i-1;
				while(j>=0 && p[i].y<p[j].y) j--;
				if(j>=0){
					p[n+n2]=get_intersect(line(p[j+1],p[j]),line(p[i],p[i]+point(1,0)));
					G[n+n2].push_back((edge){i,abs(p[i]-p[n+n2])/v2});
					n2++;
				}
			}
		}

		rep(i,n-1){
			vector< pair<point,int> > Q;
			rep(j,n+n2){
				if(cover(segment(p[i],p[i+1]),p[j])) Q.push_back(make_pair(p[j],j));
			}
			sort(Q.begin(),Q.end());
			rep(j,(int)Q.size()-1){
				int u=Q[j].second,v=Q[j+1].second;
				G[u].push_back((edge){v,abs(Q[j+1].first-Q[j].first)/v1});
			}
		}

		double d[2000];
		rep(u,n+n2) d[u]=(u==0?0:INF);

		priority_queue< pair<double,int> > Q;
		Q.push(make_pair(0,0));
		while(!Q.empty()){
			double d_now=-Q.top().first;
			int u=Q.top().second; Q.pop();

			if(d[u]<d_now-EPS) continue;

			rep(i,G[u].size()){
				int v=G[u][i].v;
				double cost=G[u][i].cost;
				if(d[v]>d[u]+cost+EPS){
					d[v]=d[u]+cost;
					Q.push(make_pair(-d[v],v));
				}
			}
		}
		printf("%.9f\n",d[n-1]);
	}

	return 0;
}