Cramer's Formula#936

Cramer's Formula

1 second
128 megabytes
Very easy

Solve the system of two linear equations with two variables using Cramer's rule.

The system of equations in the example has the form:

\begin{cases} a_1 x + b_1 y = c_1 \\ a_2 x + b_2 y = c_2 \end{cases}

It is known that the system always has a unique solution.

Input

The first line contains the coefficients of the first equation, and the second line contains the coefficients of the second equation. All numbers are separated by a space and do not exceed in absolute value.

Output

Print the first root on the first line and the second root on the second line, with an accuracy of .

Examples

Example 1

Loading
Loading