\begin{problem}{Hex Operations}{\textsl{standard input}}{\textsl{standard output}}{2 seconds}{1024 mebibytes}

In this problem, a \textit{hex} is a six-sided board
consisting of \textit{cells}: small regular hexagons.
A hex of size $n$ has $n$ cells on each side.
Each cell contains an integer.

Consider the following operations with a hex:

\begin{shortitems}
\item ``\texttt{T}'': reflect the hex over its vertical symmetry axis,
\item ``\texttt{R}'': rotate the hex 60 degrees clockwise,
\item ``\texttt{L}'': rotate the hex 60 degrees counter-clockwise.
\end{shortitems}

Here is an example of a hex of size $n = 3$ and operations with it:

\begin{center}
\includegraphics[scale=0.36]{hex-operations-001.eps}
\end{center}

You are given a hex and a sequence of operations.
Perform all the given operations in order and print the resulting hex.


\InputFile
The first line contains an integer~$n$,
the size of the hex ($2 \le n \le 500$).
The next $2 n - 1$ lines contain integers from~$1$ to~$99$
initially contained in the cells of the hex.
Each line contains space-separated integers: exactly as many
as the number of cells in the corresponding row of the hex.
Additionally, for ease of reading, these lines may contain
additional spaces before all numbers, between consecutive numbers,
and after all numbers.

The last line is the sequence of operations.
It has a length from~$1$ to~$250\,000$ characters
and consists of letters ``\texttt{T}'',~``\texttt{R}''~and~``\texttt{L}''.

The total size of the input, including spaces and line breaks,
does not exceed $2^{23}$~bytes.


\OutputFile
Print the hex after performing all operations:
$2 n - 1$ lines containing integers.
Each line should contain several space-separated integers: exactly as many
as the number of cells in the corresponding row of the hex.
Additionally, for ease of reading, these lines may contain
additional spaces before all numbers, between consecutive numbers,
and after all numbers.

The total size of the output, including spaces and line breaks,
should not exceed $2^{23}$~bytes.


\Example

\begin{example}
\exmpfile{example.01}{example.01.a}%
\end{example}

\end{problem}

