P680 [CF640H] Rotate Matrix
省选
题目描述

You are given a square matrix of integer numbers. Rotate it 90 degrees clockwise (see examples for clarification of rotation).

Input

The input consists of n lines (1 ≤ n ≤ 10, n is not given explicitly). Each of the lines contains n space-separated integers; j-th integer in i-th line corresponds to matrix element mij (1 ≤ mij ≤ 100).

Output

Output the rotated matrix in the same format as the input.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
1 2 3 4 5 6 7 8 9
样例输出
7 4 1 8 5 2 9 6 3