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<iostream>
#include<cmath>
#include<complex>
#include<queue>
#include<functional>
#include<algorithm>
#include<set>

using namespace std;

typedef double elem;
typedef complex<elem> point, vec;
typedef pair<point,point> line;

#define N 1001

const elem eps = 1.0e-7;
const elem infty = 300000000.0;

elem W[N][N];
elem A[N];
bool G[N][N];

struct State{
  int now;
  elem cost;
  bool operator>(const State&t)const{
    return cost > t.cost;
  }
};

elem cross(point a, point b){
  return a.real() * b.imag() - a.imag() * b.real();
}

elem dist(point a, point b){
  return abs(b-a);
}
elem dist(point a1, point a2, point x){
  return abs( cross(a2-a1,x-a1)) / abs(a2-a1);
}

inline bool intersected_seg(point a1, point a2, point b1, point b2){
  return (cross(a2-a1,b1-a1)*cross(a2-a1,b2-a1) < eps &&
	  cross(b2-b1,a1-b1)*cross(b2-b1,a2-b1) < eps );
}

inline point intersection_seg(point a1, point a2, point b1, point b2){
  elem d1=dist(b1,b2,a1);
  elem d2=dist(b1,b2,a2);
  elem t=d1/(d1+d2);
  return a1+t*(a2-a1);
}

void ResetGraph(){
  for(int i = 0; i < N; ++i){
    A[i] = infty;
    for(int j = 0; j < N; ++j){
      W[i][j] = infty;
      G[i][j] = false;
    }
  }
}

elem dijkstra(int goal){
  priority_queue< State, vector<State>, greater<State> > pq;
  bool visited[N]={false,};
  State st;

  st.now = 0;
  visited[0] = true;
  st.cost = 0;
  A[0] = 0;
  pq.push( st );

  while( !pq.empty() ){
    st = pq.top();
    //cout << " QUEUE SIZE "  << pq.size() << endl;
    pq.pop();

    //cout << "NOW: " << st.now << " COST : " << st.cost << endl;

    //visited[st.now] = false;
    if( st.now == goal ){
      return A[goal];
    }
    visited[st.now] = true;

    for(int i = 0; i < N; ++i){
      if( G[st.now][i] ){
	if( !visited[i] && A[st.now] + W[st.now][i] < A[i] ){
	  State next;
	  next.now = i;
	  A[i] = A[st.now] + W[st.now][i];
	  //cout << "Goto : " << i << endl;
	  //cout << "Right : " << A[st.now] << " + " <<  W[st.now][i] << endl;
	  next.cost = A[i];
	  pq.push( next );
	}
      }
    }
  }
  return 0;
}

int main(){
  while(true){
    int n;
    double vw,vc;
    vector<point> vp;
    vector<line> lines;

    ResetGraph();
    cin >> n;
    if(n==0)break;
    cin >> vw >> vc;
    for(int i = 0; i < n; ++i){
      elem x,y;
      cin>>x>>y;
      point tp(x,y);
      if(i>0){
	line l = make_pair( vp.back(),tp );
	lines.push_back(l);
      }
      vp.push_back(tp);
    }

    for(int i = 0; i < lines.size(); ++i){
      //cout << lines[i].first << ' ' << lines[i].second << endl;
      G[i][i+1] = true;
      W[i][i+1] = dist(lines[i].first, lines[i].second) / vw;
      if( lines[i].second.imag() > lines[i].first.imag() ){
	line l = make_pair( lines[i].first, point(infty, lines[i].first.imag()) );
	for(int j = i+1; j < lines.size(); ++j){
	  //	  cout << l.first << ' ' << l.second << " : " << lines[j].first << ' ' << lines[j].second << endl;
	  if( intersected_seg(l.first,
			      l.second,
			      lines[j].first,
			      lines[j].second) ){
	    point intersect = intersection_seg(
					       l.first,
					       l.second,
					       lines[j].first,
					       lines[j].second );
	    //elem d = dist( intersect, lines[j].second );
	    G[i][j+1] = true;
	    W[i][j+1] = dist( lines[i].first, intersect ) / vc + dist( intersect, lines[j].second ) / vw;
	    break;
	  }
	}
      }
      if( lines[i].second.imag() < lines[i].first.imag() ){
	line l = make_pair( lines[i].second, point(-infty, lines[i].second.imag()) );
	for(int j = i-1; j >= 0; --j){
	  // cout << l.first << ' ' << l.second << " : " << lines[j].first << ' ' << lines[j].second << endl;
	  if( intersected_seg(l.first,
			      l.second,
			      lines[j].first,
			      lines[j].second) ){
	    point intersect = intersection_seg(
					       l.first,
					       l.second,
					       lines[j].first,
					       lines[j].second );
	  //elem d = dist( intersect, lines[j].second );
	    G[j][i+1] = true;
	    W[j][i+1] = dist( lines[i].second, intersect ) / vc + dist( intersect, lines[j].first ) / vw;
	    break;
	  }
	}
      }
    }
    /*
    for(int i = 0; i < N; ++i){
      for(int j = 0; j < N; ++j){
	if( G[i][j] ){
	  cout << "i:" << i << " j:" << j << ' ' << vp[i] << "->" << vp[j] << " COST: "  << W[i][j] << endl;
	}
      }
    }
    */

    printf("%.6lf\n", dijkstra(n-1));
  }
  return 0;
}