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.
