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<algorithm>
#include<vector>
#include<stack>
#include<map>
#include<set>
#include<queue>
#include<cstdio>
#include<climits>
#include<cmath>
#include<cstring>
#include<string>
#include<sstream>
#include<numeric>
#include<cassert>

#define f first
#define s second
#define mp make_pair

#define REP(i,n) for(int i=0; i<(int)(n); i++)
#define rep(i,s,n) for(int i=(s); i<(int)(n); i++)
#define FOR(i,c) for(__typeof((c).begin()) i=(c).begin(); i!=(c).end(); i++)
#define ALL(c) (c).begin(), (c).end()
#define IN(x,s,g) ((x) >= (s) && (x) < (g))
#define ISIN(x,y,w,h) (IN((x),0,(w)) && IN((y),0,(h)))
#define print(x) printf("%d\n",x)

using namespace std;

typedef unsigned int uint;
typedef long long ll;

const int _dx[] = {0,1,0,-1};
const int _dy[] = {-1,0,1,0};

int getInt(){
  int ret = 0,c;
  c = getchar();
  while(!isdigit(c)) c = getchar();
  while(isdigit(c)){
    ret *= 10;
    ret += c - '0';
    c = getchar();
  }
  return ret;
}

double dbl(double x){ return x * x; }
double dist(double x1, double y1, double x2, double y2){
  return sqrt(dbl(x1 - x2) + dbl(y1 - y2));
}

int main(){
  int n;

  while(scanf("%d", &n), n){
    int vw, vc;
    vector<pair<int, int> > p(n);
    vector<vector<pair<int, double> > > edge(n);

    scanf("%d%d", &vw, &vc);
    REP(i, n) scanf("%d%d", &p[i].f, &p[i].s);

    REP(i, n - 1)
      edge[i].push_back(make_pair(i + 1, dist(p[i].f, p[i].s, p[i+1].f, p[i+1].s) / vw));

    REP(i, n - 1){
      if(p[i].s < p[i+1].s){
        //printf("test1: %d\n", i);
        for(int j = i + 1; j < n - 1; j++){
          if(p[j].s >= p[i].s && p[i].s >= p[j+1].s){
            if(p[j].s == p[i].s){
              edge[i].push_back(make_pair(j, (double)(p[j].f - p[i].f) / vc));
            }else if(p[j + 1].s == p[i].s){
              edge[i].push_back(make_pair(j + 1, (double)(p[j + 1].f - p[i].f) / vc));
            }else{
              int s = edge.size();
              edge.push_back(vector<pair<int, double> >());
              double x = p[j].f + ((double)(p[j + 1].f - p[j].f) / (p[j + 1].s - p[j].s)) * (p[i].s - p[j].s);
              //printf("x: %f (i=%d, j=%d)\n", x, i, j);
              edge[i].push_back(make_pair(s, (double)(x - p[i].f) / vc));
              edge[s].push_back(make_pair(j + 1, dist(p[j + 1].f, p[j + 1].s, x, p[i].s) / vw));
            }
            break;
          }
        }
      }else if(p[i].s == p[i+1].s){
        //edge[i].push_back(make_pair(i + 1, (double)(p[i+1].f - p[i].f) / vc));
      }else{
        // p[i].s > p[i + 1].s
        //printf("test2: %d\n", i);
        for(int j = i; j > 0; j--){
          if(p[j].s >= p[i + 1].s && p[i + 1].s >= p[j - 1].s){
            if(p[j].s == p[i + 1].s){
              edge[j].push_back(make_pair(i + 1, (double)(p[i + 1].f - p[j].f) / vc));
            }else if(p[j - 1].s == p[i + 1].s){
              edge[j - 1].push_back(make_pair(i + 1, (double)(p[i + 1].f - p[j - 1].f) / vc));
            }else{
              int s = edge.size();
              edge.push_back(vector<pair<int, double> >());
              double x = p[j - 1].f + ((double)(p[j].f - p[j - 1].f) / (p[j].s - p[j - 1].s)) * (p[i + 1].s - p[j - 1].s);
              //printf("x: %f (i=%d, j=%d)\n", x, i, j);
              edge[s].push_back(make_pair(i + 1, (p[i + 1].f - x) / vc));
              edge[j - 1].push_back(make_pair(s, dist(p[j - 1].f, p[j - 1].s, x, p[i + 1].s) / vw));
            }
            break;
          }
        }
      }
    }

    /*
    REP(i, edge.size()){
      printf("%d: ", i);
      REP(j, edge[i].size()){
        printf("(%d, %.2f) ", edge[i][j].f, edge[i][j].s);
      }
      puts("");
    }
    */

    int goal = n - 1;
    n = edge.size();

    vector<bool> memo(n, false);
    typedef pair<double, int> data;
    priority_queue<data, vector<data>, greater<data> > pq;

    pq.push(make_pair(0.0, 0));

    while(pq.size()){
      data d = pq.top(); pq.pop();

      double cost = d.f;
      int pos  = d.s;

      if(memo[pos]) continue;
      memo[pos] = true;

      if(pos == goal){
        printf("%.7f\n", cost);
        break;
      }

      for(int i = 0; i < edge[pos].size(); i++){
        int dist  = edge[pos][i].f;
        double cc = edge[pos][i].s;

        if(!memo[dist]){
          pq.push(make_pair(cost + cc, dist));
        }
      }
    }
  }

  return 0;
}