You are given a table $$$a$$$ of size $$$n \times m$$$, consisting of symbols "R", "G", "B".
Also, given are integers $$$c$$$ ($$$2 \leq c \leq 3$$$) and $$$q$$$, where $$$c$$$ is the number of different symbols that can appear in the table. If $$$c$$$ equals $$$2$$$, only the symbols "R" and "G" are available; if $$$c$$$ equals $$$3$$$, the symbols "R", "G", "B" are available.
You need to change the values of at most $$$q$$$ elements of the table so that there are no pairs of neighboring cells with the same value. Note that if $$$c=2$$$, using the symbol "B" when changing the values of the table cells is prohibited.
It is guaranteed that under the given constraints, there is a way to change the values of at most $$$q$$$ elements of the table so that there are no pairs of neighboring cells with the same value.
Note that there are no additional constraints in the problem.
The first line contains two integers $$$n$$$ and $$$m$$$ ($$$1 \leq n, m \leq 100$$$) — the number of rows and columns of the table $$$a$$$ respectively.
The second line contains two integers $$$c$$$ ($$$2 \leq c \leq 3$$$) and $$$q$$$, representing the number of available symbols and the number of allowed changes in the table, respectively.
The next $$$n$$$ lines contain $$$m$$$ symbols each — the elements of the table $$$a$$$. If $$$c=2$$$, then $$$a_{ij} \in $$$ {"R", "G"}. If $$$c=3$$$, then $$$a_{ij} \in $$$ {"R", "G", "B"}.
Output $$$n$$$ lines of $$$m$$$ symbols each, describing the table after the changes.
If there are multiple correct answers, any of them is allowed.
3 33 4RRRRRRRRR
RGR GRG RGR
3 22 3RGGGGR
RG GR RG