CF393B Three matrices
Description
Chubby Yang is studying linear equations right now. He came up with a nice problem. In the problem you are given an $ n×n $ matrix $ W $ , consisting of integers, and you should find two $ n×n $ matrices $ A $ and $ B $ , all the following conditions must hold:
- $ A_{ij}=A_{ji} $ , for all $ i,j $ $ (1
Input Format
The first line contains an integer $ n $ $ (1
Output Format
The first $ n $ lines must contain matrix $ A $ . The next $ n $ lines must contain matrix $ B $ . Print the matrices in the format equal to format of matrix $ W $ in input. It is guaranteed that the answer exists. If there are multiple answers, you are allowed to print any of them.
The answer will be considered correct if the absolute or relative error doesn't exceed $ 10^{-4} $ .