Write a program that realizes the equation of the line through two points (x1, y1) and (x2, y2) in 2D space:
(x - x1) / (x2 - x1) = (y - y1) / (y2 - y1)
Given a third x-coordinate x3, determine the corresponding y3 on that line.
Input
Five lines, holding x1, y1, x2, y2 and x3 in that order. All inputs are to be processed as real numbers.
Output
If the line is vertical, print a single line: Vertical Line.
Otherwise print two lines. The first line is the value of y3. The second line
describes the slope: Positive Slope, Negative Slope or Horizontal Line.
Example
Input:
1
1
3
5
4
Output:
7.0
Positive Slope
Write a complete program: read the input with input() and print the result with print().
Input
1
1
3
5
4
Output
7.0
Positive Slope