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 <algorithm>
#include <cmath>
#include <climits>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define MP make_pair

typedef long long LL;
typedef pair<int,int> PII;

double dist(int xp,int xq,int xr,int yp,int yq,int yr,int vw,int vc) {
	
//	double ret = 0;
	double t = ((double)(xp-xr) + ((double)((xq-xp) * (yp-yr)) / (yp-yq) ) )/ (double)vc;
	double s = sqrt((double)((xq-xp)*(xq-xp)+(yq-yp)*(yq-yp))) * ((double)   (yr-yq)/(yp-yq));
	s /= (double)(vw);
	if(t<0) t=-t;
//	cout<<xp<<" "<<yp<<endl;
	//cout<<xq<<" "<<yq<<endl;
//	cout<<xr<<" "<<yr<<endl;
//	cout<<"ret "<<t+s<<endl;
	double ret = t+s;
	//if(ret<0) ret = -ret;
//	cout<<" ts"<<t<<" "<<s<<endl;
	return ret;
	
	
}



int main(){
	while(1) {
		int n;
		cin>>n;
		if(n==0) break;
		int vw,vc;
		cin>>vw>>vc;
		vector<int > x;
		vector<int>y;
		for(int a=0; a<n; a++) {
			int p,q;
			cin>>p>>q;
			x.push_back(p) ;
			y.push_back(q) ;
		}
		
		double DP[2000];
		for(int a=0; a<n; a++) DP[a] =100000.00;
		
		DP[0] = 0.00;
		for(int a=1; a<n; a++) {
			int Min = 30000;
			if(y[a-1]>y[a]) for(int b=a-1; b>=0; b--) {
				if(Min>y[b]) {
//				    cout<<y[b]<<endl;
					Min = y[b];
					if(Min<y[a]) {
				    	double hoge = dist(x[b+1],x[b],x[a],y[b+1],y[b],y[a],vw,vc) ;
				    	if(DP[b]+hoge < DP[a]) DP[a] = DP[b]+hoge;
				    	
				    	break;
				    }
					double hoge = dist(x[a-1],x[a],x[b],y[a-1],y[a],y[b],vw,vc) ;
		//			cout<<DP[b]<<" "<<hoge<<" "<<DP[a]<<endl;
					if(DP[b]+hoge < DP[a]) {
						DP[a] = DP[b]+hoge;
	//					cout<<"jge"<<DP[a]<<endl;
				//	cout<<DP[a]<<endl;
				     }
				}
				
				
					
			}
			else DP[a] = DP[a-1] + sqrt( (double)( (y[a]-y[a-1])*(y[a]-y[a-1])+(x[a]-x[a-1])*(x[a]-x[a-1])  ) ) /(double)vw ;	
	//		cout<<a<<" "<<DP[a]<<endl;
		}		
		printf("%.8lf\n",DP[n-1]);   
		
	}
	return 0;
	
	
}