Problems
The point on the interval
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.
Input example #1
2 1 8 4 0.5
Output example #1
4.00 2.00