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 <cstdio>
#include <vector>
#include <queue>
#include <complex>
using namespace std;
typedef complex<double> P;
static const double EPS = 1e-6;
inline double cross(const P& a, const P& b) { return a.real()*b.imag() - b.real()*a.imag(); }

struct line/*{{{*/
{
  P a, b;
  line() {}
  line(const P& p, const P& q) : a(p), b(q) {}
};/*}}}*/

struct segment/*{{{*/
{
  P a, b;
  segment() {}
  segment(const P& x, const P& y) : a(x), b(y) {}

  inline bool intersects(const line& ln) const
  {
    return cross(ln.b - ln.a, a - ln.a) * cross(ln.b - ln.a, b - ln.a) < EPS;
  }

  inline P intersection(const line& ln) const
  {
    const P x = b - a;
    const P y = ln.b - ln.a;
    return a + x*(cross(y, ln.a - a))/cross(y, x);
  }
};/*}}}*/

int main()
{
  int N;
  while (scanf("%d", &N) != EOF && N != 0) {
    int vw, vc;
    scanf("%d %d", &vw, &vc);
    vector<P> ps;
    for (int i = 0; i < N; i++) {
      int x, y;
      scanf("%d %d", &x, &y);
      ps.push_back(P(x, y));
    }

    vector<vector<pair<int,double> > > g(3*N);
    for (int i = 0; i < N-1; i++) {
      g[3*i].push_back(make_pair(3*(i+1), abs(ps[i+1] - ps[i])/vw));
    }
    for (int i = 0; i < N; i++) {
      if (i > 0 && ps[i-1].imag() > ps[i].imag()) {
        // left edge
        const line ln(ps[i], ps[i] + P(1, 0));
        for (int j = i-2; j >= 0; j--) {
          const segment s(ps[j], ps[j+1]);
          if (s.intersects(ln)) {
            const P p = s.intersection(ln);
            const int n = 3*i+1;
            g[3*j].push_back(make_pair(n, abs(p - ps[j])/vw));
            g[n].push_back(make_pair(3*i, abs(ps[i] - p)/vc));
            break;
          }
        }
      }
      if (i < N-1 && ps[i].imag() < ps[i+1].imag()) {
        // right edge
        const line ln(ps[i], ps[i] + P(1, 0));
        for (int j = i+1; j < N-1; j++) {
          const segment s(ps[j], ps[j+1]);
          if (s.intersects(ln)) {
            const P p = s.intersection(ln);
            const int n = 3*i+2;
            g[3*i].push_back(make_pair(n, abs(p - ps[i])/vc));
            g[n].push_back(make_pair(3*(j+1), abs(ps[j+1] - p)/vw));
            break;
          }
        }
      }
    }

    static const double INF = 1e10;
    vector<double> dist(3*N, INF);
    dist[0] = 0;
    priority_queue<pair<double,int> > q;
    q.push(make_pair(0, 0));
    while (!q.empty()) {
      const double c = -q.top().first;
      const int n = q.top().second;
      q.pop();
      if (n == 3*(N-1)) {
        printf("%.6f\n", c);
        break;
      }
      if (c > dist[n]) {
        continue;
      }
      for (vector<pair<int,double> >::const_iterator it = g[n].begin(); it != g[n].end(); ++it) {
        const int m = it->first;
        const double cc = c + it->second;
        if (cc < dist[m]) {
          dist[m] = cc;
          q.push(make_pair(-cc, m));
        }
      }
    }
  }
  return 0;
}