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>
using namespace std;
typedef complex<double> P;

namespace std{
  bool operator < ( const P &a, const P &b ){
    return (a.real()==b.real()?a.imag()<b.imag():a.real()<b.real());
  }
};

typedef pair<int,int> Pair;
double eps=1e-9;

int n;
int vw,vc;
P t[2000];

void func(){
  map<P , set<P> > G;
  set<P> st;
  for(int i=0;i<n;i++){
    st.insert(t[i]);
  }
  
  set<Pair> K;
  for(int i=0;i+1<n;i++){
    P v=t[i+1]-t[i];
    if(v.imag()<-eps){
      while(1){
        set<Pair> :: iterator it;
        it=K.lower_bound( Pair(t[i+1].imag(),-1) );
        if(it==K.end())break;
        if(t[i].imag() < it->first)break;
        P base=v/abs(v.imag());
        double length=t[i].imag()-it->first;
        
        st.insert(t[i]+base*length);
        //        G[ t[i]+base*length ].insert( t[it->second] );
        G[ t[it->second]  ].insert( t[i]+base*length );
        
        K.erase(it);
      }
    }
    if(v.imag()>eps){
      K.insert( Pair(t[i].imag(), i ) );
    }
  }

  K.clear();
  for(int i=n-1;i-1>=0;i--){
    P v=t[i-1]-t[i];
    if(v.imag()<-eps){
      while(1){
        set<Pair> :: iterator it;
        it=K.lower_bound( Pair(t[i-1].imag(),-1) );
        if(it==K.end())break;
        if(t[i].imag() < it->first)break;
        P base=v/abs(v.imag());
        double length=t[i].imag()-it->first;

        st.insert(t[i]+base*length);
        G[ t[i]+base*length ].insert( t[it->second] );

        K.erase(it);
      }
    }
    if(v.imag()>eps){
      K.insert( Pair(t[i].imag(), i ) );
    }
  }

  set<P> :: iterator it;
  vector<P> u;
  for(it=st.begin();it!=st.end();it++){
    u.push_back(*it);
    //    printf("%.3f %.3f\n",it->real(),it->imag());
  }

  vector<double> dp( st.size() , 1e30 );
  dp[0]=0;
  for(int i=0;i+1<(int)st.size();i++){
    dp[i+1]=min(dp[i+1],dp[i]+abs(u[i]-u[i+1])/(double)vw);

    for(it=G[u[i]].begin();it!=G[u[i]].end();it++){
      P to=*it;
      int target=lower_bound(u.begin(),u.end(),to)-u.begin();
      dp[target]=min(dp[target],dp[i]+
                     abs(u[i].real()-u[target].real())/(double)vc);
    }
  }
  printf("%.6f\n",dp.back());
}

int main(){
  while(1){
    scanf("%d",&n);
    if(n==0)break;
    scanf("%d %d",&vw,&vc);
    for(int i=0;i<n;i++){
      int x,y;
      scanf("%d %d",&x,&y);
      t[i]=P(x,y);
    }
    func();
  }
  return 0;
}