Petya has recently started working as a programmer in the IT city company that develops computer games.

Besides game mechanics implementation to create a game it is necessary to create tool programs that can be used by game designers to create game levels. Petya's first assignment is to create a tool that allows to paint different arrows on the screen.

A user of this tool will choose a point on the screen, specify a vector (the arrow direction) and vary several parameters to get the required graphical effect. In the first version of the program Petya decided to limit parameters of the arrow by the following: a point with coordinates (*px*, *py*), a nonzero vector with coordinates (*vx*, *vy*), positive scalars *a*, *b*, *c*, *d*, *a* &gt; *c*.

The produced arrow should have the following properties. The arrow consists of a triangle and a rectangle. The triangle is isosceles with base of length *a* and altitude of length *b* perpendicular to the base. The rectangle sides lengths are *c* and *d*. Point (*px*, *py*) is situated in the middle of the triangle base and in the middle of side of rectangle that has length *c*. Area of intersection of the triangle and the rectangle is zero. The direction from (*px*, *py*) point to the triangle vertex opposite to base containing the point coincides with direction of (*vx*, *vy*) vector.

Enumerate the arrow points coordinates in counter-clockwise order starting from the tip.
The only line of the input contains eight integers *px*, *py*, *vx*, *vy* ( - 1000 ≤ *px*, *py*, *vx*, *vy* ≤ 1000, *vx*<sup class="upper-index">2</sup> + *vy*<sup class="upper-index">2</sup> &gt; 0), *a*, *b*, *c*, *d* (1 ≤ *a*, *b*, *c*, *d* ≤ 1000, *a* &gt; *c*).
none
8 8 0 2 8 3 4 5
8.000000000000 11.000000000000
4.000000000000 8.000000000000
6.000000000000 8.000000000000
6.000000000000 3.000000000000
10.000000000000 3.000000000000
10.000000000000 8.000000000000
12.000000000000 8.000000000000
10 10 7 0 5 8 2 11
18.000000000000 10.000000000000
10.000000000000 12.500000000000
10.000000000000 11.000000000000
-1.000000000000 11.000000000000
-1.000000000000 9.000000000000
10.000000000000 9.000000000000
10.000000000000 7.500000000000
10 10 0 7 5 8 2 11
10.000000000000 18.000000000000
7.500000000000 10.000000000000
9.000000000000 10.000000000000
9.000000000000 -1.000000000000
11.000000000000 -1.000000000000
11.000000000000 10.000000000000
12.500000000000 10.000000000000
10 10 -7 0 5 8 2 11
2.000000000000 10.000000000000
10.000000000000 7.500000000000
10.000000000000 9.000000000000
21.000000000000 9.000000000000
21.000000000000 11.000000000000
10.000000000000 11.000000000000
10.000000000000 12.500000000000
10 10 0 -7 5 8 2 11
10.000000000000 2.000000000000
12.500000000000 10.000000000000
11.000000000000 10.000000000000
11.000000000000 21.000000000000
9.000000000000 21.000000000000
9.000000000000 10.000000000000
7.500000000000 10.000000000000
10 10 7 7 5 8 2 11
15.656854249492 15.656854249492
8.232233047034 11.767766952966
9.292893218813 10.707106781187
1.514718625761 2.928932188135
2.928932188135 1.514718625761
10.707106781187 9.292893218813
11.767766952966 8.232233047034
10 10 7 -7 5 8 2 11
15.656854249492 4.343145750508
11.767766952966 11.767766952966
10.707106781187 10.707106781187
2.928932188135 18.485281374239
1.514718625761 17.071067811865
9.292893218813 9.292893218813
8.232233047034 8.232233047034
10 10 -7 7 5 8 2 11
4.343145750508 15.656854249492
8.232233047034 8.232233047034
9.292893218813 9.292893218813
17.071067811865 1.514718625761
18.485281374239 2.928932188135
10.707106781187 10.707106781187
11.767766952966 11.767766952966
10 10 -7 -7 5 8 2 11
4.343145750508 4.343145750508
11.767766952966 8.232233047034
10.707106781187 9.292893218813
18.485281374239 17.071067811865
17.071067811865 18.485281374239
9.292893218813 10.707106781187
8.232233047034 11.767766952966
669 649 952 535 380 408 58 532
1024.682613875615 848.884662209511
575.916456324002 814.636511363644
654.792511754716 674.281362260767
191.010279936512 413.647439967974
219.425256427080 363.084715446440
683.207488245284 623.718637739233
762.083543675998 483.363488636356
90 798 425 372 244 996 169 253
839.457138593842 1453.995424839786
9.647146756572 889.800974807679
34.345769679757 861.583462059417
-156.028382995185 694.950086070998
-44.719922354699 567.783161952163
145.654230320243 734.416537940583
170.352853243428 706.199025192321
403 24 708 984 850 765 344 865
849.793598704384 644.967374470500
58.018125294167 272.218665946880
263.383806001404 124.455554218502
-241.814184690481 -577.684026065135
37.418203306711 -778.595134502139
542.616193998596 -76.455554218502
747.981874705833 -224.218665946880
767 238 263 303 155 351 21 686
997.080388094088 503.073603013340
708.472352611015 288.801225291430
759.070447773105 244.882746652387
309.397666483806 -273.181332171406
325.256770937595 -286.946825476181
774.929552226895 231.117253347613
825.527647388985 187.198774708570
380 171 865 522 392 242 71 774
587.195587057422 296.035949646213
278.731214336125 338.811301914276
361.657949535370 201.394393969167
-301.025457003657 -198.513973907563
-264.341356074397 -259.302761845898
398.342050464630 140.605606030833
481.268785663875 3.188698085724
254 578 251 809 412 966 92 984
540.249899491702 1500.614217883613
57.252040492729 639.042939229079
210.065989624590 591.630947594843
-81.517758925964 -348.174839566104
6.350261824857 -375.436734755790
297.934010375410 564.369052405157
450.747959507271 516.957060770921
870 396 187 223 444 202 222 732
999.794532443395 550.781715159771
699.893362547183 538.645476249672
784.946681273591 467.322738124836
314.602137963862 -93.569417800670
484.708775416679 -236.214894050342
955.053318726409 324.677261875164
1040.106637452818 253.354523750328
px,py,vx,vy,a,b,c,d = map(int,input().split())
dist = (vx*vx+vy*vy)**0.5
a /= dist
b /= dist
c /= dist
d /= dist
ans = [(b,0),(0,a/2),(0,c/2),(-d,c/2),(-d,-c/2),(0,-c/2),(0,-a/2)]
for i in ans:
    x = i[0]+px
    y = i[1]+py
    print(x*vx-vi*vy,y*vx+x*vy)