Skip to main content

~/algor $ cat contests/round-7/AV

AV. System of equations

Problem AV ICPC rules 1000 ms 64 MB

A system of two linear equations in two unknowns is given:

The determinant is non-zero, so the solution is unique. Find and with Cramer's rule:

Two lines cross at one point; the coordinates (x; y) of that point are the solution of the system

Input

The first line has three integers: , and . The second line has three integers: , and .

Output

One line with two numbers: and , each with exactly 2 digits after the decimal point (for example, 2.00). If the rounded result is zero (for example, ), print 0.00 (not -0.00).

Note


Examples

Input #1
1 1 3
1 -1 1
Output #1
2.00 1.00
Input #2
2 3 7
4 -1 0
Output #2
0.50 2.00

Sign in to submit a solution

Signing up is free and takes a minute.