e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

WEEK5 GEOMETRY

The point on the interval

The segment is given by the coordinates of its endpoints: M(x1,y1) and N(x2,y2). Find the coordinates of O(x,y), which divides it in ratio α.

Input

In a single line the coordinates of segment endpoints and the number α are given. All coordinates do not exceed 100 by the absolute value.

Output

Print in one line the coordinates x and y of the desired point with two digits after the decimal point.

Time limit 1 second
Memory limit 128 MiB
Input example #1
2 1 8 4 0.5
Output example #1
4.00 2.00