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>
struct Point {
  double x, y;
  Point() {}
  Point(double a, double b) {
    x = a;
    y = b;
  }
  void scan() { scanf("%lf %lf", &x, &y); }
  void print() const { printf("(%f,%f) ", x, y); }
  Point operator+(const Point &o) const { return Point(x + o.x, y + o.y); }
  Point operator-(const Point &o) const { return Point(x - o.x, y - o.y); }
  Point operator*(double f) const { return Point(x * f, y * f); }
  Point operator/(double f) const { return Point(x / f, y / f); }
} P, S, meta(0, 0);
double getCross(const Point &o, const Point &a, const Point &b) {
  double x1 = a.x - o.x;
  double y1 = a.y - o.y;
  double x2 = b.x - o.x;
  double y2 = b.y - o.y;
  return x1 * y2 - x2 * y1;
}
double getDot(const Point &o, const Point &a, const Point &b) {
  double x1 = a.x - o.x;
  double y1 = a.y - o.y;
  double x2 = b.x - o.x;
  double y2 = b.y - o.y;
  return x1 * x2 + y1 * y2;
}
double getDist(const Point &a, const Point &b) {
  double dx = a.x - b.x;
  double dy = a.y - b.y;
  return sqrt(dx * dx + dy * dy);
}
Point rotate(const Point &pt, double angle) {
  Point ret;
  ret.x = pt.x * cos(angle) - pt.y * sin(angle);
  ret.y = pt.x * sin(angle) + pt.y * cos(angle);
  return ret;
}
double getAngle(const Point &o, const Point &a, const Point &b) {
  return acos(getDot(o, a, b) / (getDist(o, a) * getDist(o, b)));
}
double vp, vs, r, R;
double calc(const Point &A, const Point &B) {
  double lenA = getDist(meta, A);
  double lenB = getDist(meta, B);
  double angleAB = getAngle(meta, A, B);
  double angleA = acos(r / lenA);
  double angleB = acos(r / lenB);
  if (angleAB > angleA + angleB) {
    double beta = angleAB - angleA - angleB;
    double distA = sqrt(lenA * lenA - r * r);
    double distB = sqrt(lenB * lenB - r * r);
    return distA + distB + beta * r;
  } else {
    return getDist(A, B);
  }
}
bool judge(double t) {
  double angle = t * vp / R;
  Point Q = rotate(P, angle);
  double dist = calc(Q, S);
  return dist <= t * vs;
}
double gao() {
  double left = 0.0;
  double right = (getDist(meta, S) + acos(-1.0) * R * R) / vs;
  int cnt = 1000;
  while (cnt--) {
    double m = 0.5 * (left + right);
    bool ans = judge(m);
    if (ans) {
      right = m;
    } else {
      left = m;
    }
  }
  return left;
}
int main() {
  P.scan();
  scanf("%lf", &vp);
  S.scan();
  scanf("%lf %lf", &vs, &r);
  R = getDist(meta, P);
  double ans = gao();
  printf("%.16f\n", ans);
  return 0;
}