Colorful Table#332

Colorful Table

1 second
256 megabytes
Hard

You are given a table of size n \times m, consisting of symbols "R", "G", "B".

Also, given are integers (2 \leq c \leq 3) and , where is the number of different symbols that can appear in the table. If equals , only the symbols "R" and "G" are available; if equals , the symbols "R", "G", "B" are available.

You need to change the values of at most 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 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.

Input

The first line contains two integers and (1 \leq n, m \leq 100) — the number of rows and columns of the table respectively.

The second line contains two integers (2 \leq c \leq 3) and , representing the number of available symbols and the number of allowed changes in the table, respectively.

The next lines contain symbols each — the elements of the table . If c=2, then a_{ij} \in "R", "G". If c=3, then a_{ij} \in "R", "G", "B".

Output

Output lines of symbols each, describing the table after the changes.

If there are multiple correct answers, any of them is allowed.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Scoring

  1. ( points): n = 1,\ c = 3,\ q = \lfloor \frac{n \cdot m}{2} \rfloor ;

  2. ( points): n = 1,\ c = 2,\ q = \lfloor \frac{n \cdot m}{2} \rfloor;

  3. ( points): c = 3,\ q = n \cdot m;

  4. ( points): all rows of table are the same, a[1][j] \neq a[1][j+1] (for 1 \leq j < m), c = 3, q = \lfloor \frac{n \cdot m}{2} \rfloor;

  5. ( points): all rows of table are the same, c = 3, q = \lfloor \frac{n \cdot m}{2} \rfloor;

  6. ( points): c = 3,\ q = \lfloor \frac{2 \cdot n \cdot m}{3} \rfloor ;

  7. ( points): c = 3,\ n \leq 5,\ m \leq 100,\ q = \lfloor \frac{n \cdot m}{2} \rfloor;

  8. ( points): c = 2,\ q = \lfloor \frac{n \cdot m}{2} \rfloor;

  9. ( points): c = 3,\ q = \lfloor \frac{n \cdot m}{2} \rfloor.