Problem: Qwerty the Ranger arrived to the Diatar system with a very important task. He should deliver a special carcinogen for scientific research to planet Persephone. This is urgent, so Qwerty has to get to the planet as soon as possible. A lost day may fail negotiations as nobody is going to pay for an overdue carcinogen.

You can consider Qwerty's ship, the planet Persephone and the star Diatar points on a plane. Diatar is located in the origin of coordinate axes — at point (0, 0). Persephone goes round Diatar along a circular orbit with radius R in the counter-clockwise direction at constant linear speed vp (thus, for instance, a full circle around the star takes <image> of time). At the initial moment of time Persephone is located at point (xp, yp).

At the initial moment of time Qwerty's ship is at point (x, y). Qwerty can move in any direction at speed of at most v (v > vp). The star Diatar is hot (as all stars), so Qwerty can't get too close to it. The ship's metal sheathing melts at distance r (r < R) from the star.

Find the minimum time Qwerty needs to get the carcinogen to planet Persephone.

Input

The first line contains space-separated integers xp, yp and vp ( - 104 ≤ xp, yp ≤ 104, 1 ≤ vp < 104) — Persephone's initial position and the speed at which it goes round Diatar.

The second line contains space-separated integers x, y, v and r ( - 104 ≤ x, y ≤ 104, 1 < v ≤ 104, 1 ≤ r ≤ 104) — The intial position of Qwerty's ship, its maximum speed and the minimum safe distance to star Diatar.

It is guaranteed that r2 < x2 + y2, r2 < xp2 + yp2 and vp < v.

Output

Print a single real number — the minimum possible delivery time. The answer will be considered valid if its absolute or relative error does not exceed 10 - 6.

Examples

Input

10 0 1
-10 0 2 8


Output

9.584544103

Input

50 60 10
50 60 20 40


Output

0.000000000

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
int cmp(double a, double b) {
  if (a + 0.00000001 <= b) return -1;
  if (a < b + 0.00000001) return 0;
  return 1;
}
int cmp(pair<double, double> a, pair<double, double> b) {
  int t = cmp(a.first, b.first);
  if (t) return t;
  return cmp(a.second, b.second);
}
pair<double, double> in = make_pair(INFINITY, INFINITY);
pair<double, double> operator+(pair<double, double> a, pair<double, double> b) {
  return make_pair(a.first + b.first, a.second + b.second);
}
pair<double, double> operator-(pair<double, double> a, pair<double, double> b) {
  return make_pair(a.first - b.first, a.second - b.second);
}
pair<double, double> operator*(pair<double, double> a, double t) {
  return make_pair(a.first * t, a.second * t);
}
pair<double, double> operator/(pair<double, double> a, double t) {
  return make_pair(a.first / t, a.second / t);
}
double operator*(pair<double, double> a, pair<double, double> b) {
  return a.first * b.first + a.second * b.second;
}
double operator%(pair<double, double> a, pair<double, double> b) {
  return a.first * b.second - a.second * b.first;
}
bool operator<(pair<double, double> a, pair<double, double> b) {
  return cmp(a, b) < 0;
}
bool operator==(pair<double, double> a, pair<double, double> b) {
  return cmp(a, b) == 0;
}
double norm(pair<double, double> a) { return sqrt(a * a); }
double arg(pair<double, double> a) { return atan2(a.second, a.first); }
inline double dist(pair<double, double> p, pair<double, double> q) {
  return norm(p - q);
}
inline int ccw(pair<double, double> a, pair<double, double> b,
               pair<double, double> c) {
  return cmp((a - c) % (b - c), 0);
}
inline double angle(pair<double, double> a, pair<double, double> b,
                    pair<double, double> c) {
  pair<double, double> u = a - b, v = c - b;
  return atan2(u % v, u * v);
}
inline int between(pair<double, double> p, pair<double, double> q,
                   pair<double, double> r) {
  return ccw(p, q, r) == 0 && cmp((p - q) * (r - q), 0) <= 0;
}
pair<double, double> foot(pair<double, double> P, pair<double, double> A,
                          pair<double, double> B) {
  pair<double, double> dir = B - A;
  pair<double, double> x = P - A;
  return (dir * ((P - A) * dir)) / (dir * dir) + A;
}
pair<pair<double, double>, pair<double, double> > disppt(pair<double, double> P,
                                                         pair<double, double> Q,
                                                         double d) {
  pair<double, double> dir = P - Q;
  pair<double, double> r = pair<double, double>(dir.second, -dir.first);
  pair<double, double> k = r * (d / norm(r));
  return make_pair(Q + k, Q - k);
}
pair<pair<double, double>, pair<double, double> > circLine(
    pair<double, double> o, double r, pair<double, double> a,
    pair<double, double> b) {
  pair<double, double> h = foot(o, a, b);
  double d = norm(h - o);
  if (cmp(d, 0) == 0) {
    return make_pair((a - o) * r / norm(a - o) + o,
                     (b - o) * r / norm(b - o) + o);
  }
  if (cmp(d * d, r * r) == 0) return make_pair(h, in);
  if (cmp(d * d, r * r) == 1) return make_pair(in, in);
  return disppt(o, h, sqrt(r * r - d * d));
}
bool inCircle(pair<double, double> o, double r, pair<double, double> p) {
  return cmp((p - o) * (p - o), r * r) <= 0;
}
pair<pair<double, double>, pair<double, double> > getTangents(
    pair<double, double> o, double r, pair<double, double> p) {
  if (inCircle(o, r, p)) return make_pair(in, in);
  double d = sqrt((p - o) * (p - o) - r * r);
  double ang = arg(o - p);
  double ofs = atan(r / d);
  pair<double, double> dir1 = make_pair(cos(ang + ofs), sin(ang + ofs));
  pair<double, double> dir2 = make_pair(cos(ang - ofs), sin(ang - ofs));
  return make_pair(p + dir1 * d, p + dir2 * d);
}
pair<double, double> P, Q, S;
double vp, v, r, R, a, b;
double make(pair<double, double> A, pair<double, double> B) {
  double ang = abs(arg(A) - arg(B));
  if (ang > 3.141592653589793) ang = 2 * 3.141592653589793 - ang;
  return ang * r + min(dist(Q, A) + dist(B, P), dist(Q, B) + dist(A, P));
}
int can(double t) {
  b = a + t * vp / R;
  P = make_pair(cos(b), sin(b)) * R;
  pair<pair<double, double>, pair<double, double> > p =
      circLine(make_pair(0, 0), r, P, Q);
  double ret = dist(P, Q);
  if (p.second != in && between(P, p.second, Q)) {
    pair<pair<double, double>, pair<double, double> > q =
        getTangents(make_pair(0, 0), r, P);
    pair<pair<double, double>, pair<double, double> > s =
        getTangents(make_pair(0, 0), r, Q);
    ret = make(q.first, s.first);
    ret = min(ret, make(q.first, s.second));
    ret = min(ret, make(q.second, s.first));
    ret = min(ret, make(q.second, s.second));
  }
  return ret / v <= t;
}
int main() {
  cin >> S.first >> S.second >> vp >> Q.first >> Q.second >> v >> r;
  R = norm(S);
  a = arg(S / R);
  double st = 0, dr = 1000000000, ret = 0;
  while (dr - st > 0.00000001) {
    double mij = (st + dr) / 2;
    if (can(mij)) {
      ret = mij;
      dr = mij;
    } else {
      st = mij;
    }
  }
  printf("%.8lf\n", ret);
  return 0;
}