The intersection of two lines#2143

The intersection of two lines

1 second
64 megabytes
Very easy

Find the coordinates of the intersection point of two different non-parallel lines.

Input

Six numbers are given: the coefficients , , and for the normal equation of each of the two lines (first for the first line, then for the second line). All input numbers are integers with absolute value not exceeding .

Output

Print two numbers: the coordinates of the intersection point with an accuracy of decimal places.

Examples

Example 1

Loading
Loading