Matrix inversion#4375

Matrix inversion

1 second
256 megabytes
Medium (≈1350)

The square matrix is given. Find the inverse matrix.

Input

The first line contains the size of the matrix (1 \leq n \leq 100). Each of the next lines contains real numbers — the data of the matrix.

Output

If the inverse matrix does not exist, print NO. Otherwise, print YES in the first line, and then print lines with real numbers in each — the inverse matrix. The answer is considered correct if the absolute or relative error of the elements of the inverse matrix is no more than 10^{-6}.

Examples

Example 1

Loading
Loading