eolymp
bolt
Try our new interface for solving problems
Problems

Cramer's Formula

Cramer's Formula

Time limit 1 second
Memory limit 128 MiB

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

The system of equations given in the example has the form:

prb936

It is known that system has a unique solution.

Input data

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 with one space and do not exceed 100 by the absolute value.

Output data

Print the first root in the first line and the second root in the second line with accuracy 0.001.

Examples

Input example #1
5 8 11
-3 6 15
Output example #1
-1.000
2.000