Brothers Fred and George Weasley once got into the sporting goods store and opened a box of Quidditch balls. After long and painful experiments they found out that the Golden Snitch is not enchanted at all. It is simply a programmed device. It always moves along the same trajectory, which is a polyline with vertices at the points (*x*<sub class="lower-index">0</sub>, *y*<sub class="lower-index">0</sub>, *z*<sub class="lower-index">0</sub>), (*x*<sub class="lower-index">1</sub>, *y*<sub class="lower-index">1</sub>, *z*<sub class="lower-index">1</sub>), ..., (*x*<sub class="lower-index">*n*</sub>, *y*<sub class="lower-index">*n*</sub>, *z*<sub class="lower-index">*n*</sub>). At the beginning of the game the snitch is positioned at the point (*x*<sub class="lower-index">0</sub>, *y*<sub class="lower-index">0</sub>, *z*<sub class="lower-index">0</sub>), and then moves along the polyline at the constant speed *v*<sub class="lower-index">*s*</sub>. The twins have not yet found out how the snitch behaves then. Nevertheless, they hope that the retrieved information will help Harry Potter and his team in the upcoming match against Slytherin. Harry Potter learned that at the beginning the game he will be at the point (*P*<sub class="lower-index">*x*</sub>, *P*<sub class="lower-index">*y*</sub>, *P*<sub class="lower-index">*z*</sub>) and his super fast Nimbus 2011 broom allows him to move at the constant speed *v*<sub class="lower-index">*p*</sub> in any direction or remain idle. *v*<sub class="lower-index">*p*</sub> is not less than the speed of the snitch *v*<sub class="lower-index">*s*</sub>. Harry Potter, of course, wants to catch the snitch as soon as possible. Or, if catching the snitch while it is moving along the polyline is impossible, he wants to hurry the Weasley brothers with their experiments. Harry Potter catches the snitch at the time when they are at the same point. Help Harry.
The first line contains a single integer *n* (1 ≤ *n* ≤ 10000). The following *n* + 1 lines contain the coordinates *x*<sub class="lower-index">*i*</sub>, *y*<sub class="lower-index">*i*</sub>, *z*<sub class="lower-index">*i*</sub>, separated by single spaces. The coordinates of any two consecutive points do not coincide. The next line contains the velocities *v*<sub class="lower-index">*p*</sub> and *v*<sub class="lower-index">*s*</sub>, the last line contains *P*<sub class="lower-index">*x*</sub>, *P*<sub class="lower-index">*y*</sub>, *P*<sub class="lower-index">*z*</sub>, separated by single spaces. All the numbers in the input are integers, their absolute value does not exceed 10<sup class="upper-index">4</sup>. The speeds are strictly positive. It is guaranteed that *v*<sub class="lower-index">*s*</sub> ≤ *v*<sub class="lower-index">*p*</sub>.
none
4
0 0 0
0 10 0
10 10 0
10 0 0
0 0 0
1 1
5 5 25
YES
25.5000000000
10.0000000000 4.5000000000 0.0000000000
4
0 0 0
0 10 0
10 10 0
10 0 0
0 0 0
1 1
5 5 50
NO
1
1 2 3
4 5 6
20 10
1 2 3
YES
0.0000000000
1.0000000000 2.0000000000 3.0000000000
4
0 0 0
0 1 0
1 1 0
1 0 0
0 0 0
10 5
0 0 8
YES
0.8000000000
0.0000000000 0.0000000000 0.0000000000
4
1 0 0
0 1 0
-1 0 0
0 -1 0
1 0 0
10 5
9 0 -8
YES
1.1313708499
1.0000000000 0.0000000000 0.0000000000
5
32 -5 -42
-25 -38 -6
-13 41 25
21 -25 -32
43 35 -19
-38 -12 -48
3 2
182 -210 32
YES
97.5061769956
-0.5611252637 16.8539490414 4.1465923539
10
-20 28 4
-12 -34 49
3 -11 25
-35 -46 25
4 29 -15
17 16 -10
40 -35 16
-15 -25 10
-2 40 20
-26 18 -49
14 8 -44
3 1
-877 450 899
YES
437.7804049730
-6.8291526407 15.8542367965 16.2852671995
1
5 -22 -3
31 -41 -35
4 4
139 -86 -115
NO
2
-34 37 40
24 -28 7
-20 -14 -25
1 1
-69 -28 -70
YES
107.2130636667
12.9900466281 -24.4968330180 -1.0072388159
3
-38 -39 -19
-49 -16 50
-3 -7 5
28 -15 41
1 1
-100 -139 -33
NO
15
-17 -8 7
-50 -28 8
13 -38 -17
27 -49 15
34 49 17
-17 36 25
-10 -15 28
-15 -36 32
-8 47 26
-19 18 -25
44 36 -16
4 -46 49
46 20 -13
21 -37 -8
35 -38 -26
-26 46 12
4 1
-1693 1363 2149
YES
768.5953048926
37.0198725921 5.8883712161 0.2563785546
20
26 47 23
1 -2 17
-14 -22 46
19 34 -18
22 -10 -34
15 14 -48
-30 -12 -12
-23 40 -48
-50 -41 -35
48 -5 46
-2 -11 10
-49 47 -15
31 6 10
-41 35 15
28 28 25
43 -7 -10
-19 -48 49
-10 -29 28
0 -10 28
41 12 -26
-14 40 17
3 2
-115 1407 1434
YES
659.9757793192
-5.2872973659 35.5644422954 10.1882506679
1
0 0 0
0 0 1
10000 10000
0 0 1
YES
0.0000500000
0.0000000000 0.0000000000 0.5000000000
1
10000 -10000 10000
-10000 10000 -10000
1 1
10000 10000 10000
YES
17320.5080756888
0.0000000000 0.0000000000 0.0000000000
1
10000 -10000 10000
-10000 10000 -10000
10000 1
10000 10000 10000
YES
1.9998845433
9998.8453661206 -9998.8453661206 9998.8453661206
1
0 0 -1
0 0 1
10000 1
0 0 10000
YES
1.0000000000
0.0000000000 0.0000000000 0.0000000000
1
0 0 0
-1 0 0
10000 1
10000 0 0
NO
2
10000 10000 10000
10000 10000 -10000
10000 -10000 -10000
1 1
-10000 -10000 10000
YES
30000.0000000000
10000.0000000000 0.0000000000 -10000.0000000000
4
10000 9999 10000
10000 9999 9999
10000 10000 9999
10000 10000 10000
10000 9999 10000
10000 1
-10000 -10000 -10000
YES
3.4640748220
10000.0000000000 9999.5359251780 10000.0000000000
3
10000 9999 10000
10000 9999 9999
10000 10000 9999
10000 10000 10000
10000 1
-10000 -10000 -10000
NO
import sys
eps = 1e-8
n = int(input())
al = [list(map(int, input().split())) for _ in range(n+1)]
vp, vs = map(int, input().split())
px, py, pz = p0 = map(int, input().split())
al = [(x-px, y-py, z-pz) for x, y, z in al]

d3 = lambda x, y, z: x*x + y*y + z*z
t0, ts = 0, 0
rt = None
        
for i in range(n):
    c = [y-x for x, y in zip(al[i], al[i+1])]
    ll = d3(*c)
    l = ll**0.5
    ts += l
    te = ts / vs
    v = [vs*x for x in c]
    s = [l*x - a*t0 for x, a in zip(al[i], v)]
    a = d3(*v) - vp*vp*ll
    b = 2 * sum(x*i for x, i in zip(s, v))
    c = d3(*s)
    d = b*b - 4*a*c
    fa = abs(a) < eps
    f = lambda t: (t0 - eps < t < te + eps)
    if fa:
        if abs(b) > eps and f(-c/b):
            rt = -c/b
            break
    elif d > -eps:
        if d < eps:
            d = 0
        a *= 2.0
        d **= 0.5
        tl = [t for t in ((-b+d) / a, (-b-d) / a) if f(t)]
        if tl:
            rt = min(tl)
            break
    t0 = te
if rt is None:
    print("NO")
else:
    print("YES")
    print("%.9f" % rt)
    print(" ".join(["%.9f" % ((x+a*rt) / l+p) for x, a, p in zip(s, v, p0)]))
