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 "bits/stdc++.h"
#include<unordered_map>
#include<unordered_set>
#pragma warning(disable:4996)
using namespace std;
using ld = long double;
const ld eps = 1e-9;



ld dis(pair<ld, ld>l, pair<ld, ld>r) {
	ld dx=l.first-r.first;
	ld dy=l.second-r.second;
	return sqrt(ld(dx)*dx+ ld(dy)*dy);
}

ld get_x(pair<ld, ld>f, pair<ld, ld>t, ld y) {
	if(f.second>t.second)return get_x(t,f,y);

	ld a=y-f.second;
	ld b=t.second-y;

	return (t.first*a+f.first*b)/(a+b);
}

int main() {
	cout<<setprecision(10)<<fixed;
	while (true) {
		int N ; ld vw,vc;cin>>N;
		if(!N)break;
		cin>>vw>>vc;
		vector<pair<ld, ld>>points(N);


		for (int i = 0; i < N; ++i) {
			int a,b;cin>>a>>b;
			points[i]=make_pair(a,b);
		}

		vector<vector<pair<int, ld>>>edges(N);
		for (int i = 0; i < N - 1; ++i) {
			edges[i].push_back(make_pair(i+1,dis(points[i],points[i+1])/vw));
		}


		for (int i = 0; i < N - 1; ++i) {
			ld ny=points[i].second;
			if (points[i + 1].second > ny) {
				for (int j = i + 1; j < N-1; ++j) {
					ld fy=points[j].second;
					ld ty=points[j+1].second;

					if (ny < fy&&ty <= ny) {
						ld tunnel_x=get_x(points[j],points[j+1],ny);

						ld adis=abs(tunnel_x-points[i].first)/vc+dis(make_pair(tunnel_x,ny),points[j+1])/vw;

						edges[i].push_back(make_pair(j+1,adis));
						break;
					}
				}
			}
		}
		for (int i = 1; i < N; ++i) {
			ld ny = points[i].second;
			if (points[i - 1].second > ny) {
				for (int j = i - 1; j >0; --j) {
					ld fy = points[j].second;
					ld ty = points[j - 1].second;

					if (ny < fy&&ty <= ny) {
						ld tunnel_x = get_x(points[j], points[j - 1], ny);

						ld adis = abs(tunnel_x - points[i].first)/vc + dis(make_pair(tunnel_x, ny), points[j - 1])/vw;

						edges[j-1].push_back(make_pair(i, adis));
						break;
					}
				}
			}
		}

		vector<ld>memo(N,1e9);
		memo[0]=0;
		for (int i = 0; i < N; ++i) {
			for (auto e : edges[i]) {
				int to=e.first;
				ld cost=e.second;
				memo[to]=min(memo[to],memo[i]+cost);
			}
		}
		cout<<memo[N-1]<<endl;
	}
	return 0;
}