Moxin knows someone's birthday, Moxin has come up with an interesting topic to say happy birthday to this person,but Moxin feels
that it is very meaningless to saythat happy birthday, so there is the following encryption method.
You can convert the first matrix into a sentence and then convert the sentence to the form of the second matrix.
From the example we can know that this sentence is HAPPYBIRTHDAYXHL, converted to the second matrix as an example
Give an integer n representing the size of the matrix(1 <= n <= 100),Multiple sets of inputs
Next, give an n*n character matrix
Convert each of the given samples from the first matrix to the second matrix
4 HABI PYRY PTAX HDHL
HAPP AYXY DLHB HTRI