#include <bits/stdc++.h>
using namespace std;
struct P {
  double x, y, z;
  P operator+(const P &o) {
    P res = *this;
    res.x += o.x, res.y += o.y, res.z += o.z;
    return res;
  }
  P operator-(const P &o) {
    P res = *this;
    res.x -= o.x, res.y -= o.y, res.z -= o.z;
    return res;
  }
  P operator*(double n) {
    P res = *this;
    res.x *= n, res.y *= n, res.z *= n;
    return res;
  }
};
double d(const P &p) { return sqrt(p.x * p.x + p.y * p.y + p.z * p.z); }
int main() {
  int n;
  cin >> n;
  vector<P> p(n + 1);
  for (int i = 0; i < n + 1; ++i) cin >> p[i].x >> p[i].y >> p[i].z;
  double vp, vs, T = 0;
  cin >> vp >> vs;
  P o;
  cin >> o.x >> o.y >> o.z;
  for (int i = 0; i < n; ++i) {
    double lo = 0, hi = 1e9, mi;
    double t = d(p[i + 1] - p[i]) / vs;
    for (int j = 0; j < 100; ++j) {
      mi = lo + (hi - lo) / 2;
      P g = (p[i + 1] - p[i]) * (mi / t) + p[i];
      if (d(g - o) <= vp * (mi + T))
        hi = mi;
      else
        lo = mi;
    }
    if (hi < t + 0.00001) {
      P g = (p[i + 1] - p[i]) * (hi / t) + p[i];
      cout << "YES" << endl;
      cout << fixed << setprecision(10) << hi + T << endl;
      cout << g.x << ' ' << g.y << ' ' << g.z << endl;
      return 0;
    }
    T += t;
  }
  cout << "NO" << endl;
}
