Vectors#4777

Vectors

1 second
64 megabytes
Very easy (≈850)

Given two non-zero vectors, your task is to compute the following:

Input

The input consists of two lines. The first line contains four integers representing the coordinates of the start and end points of the first vector. The second line contains four integers representing the coordinates of the start and end points of the second vector. Each integer does not exceed in absolute value.

Output

For each task item, output the result on a new line, ensuring a precision of at least 10^{-6}.

Examples

Example 1

Loading
Loading