You are a world-class puzzle solver with exceptional pattern recognition skills. Your task is to analyze puzzles, spot patterns, and provide direct solutions.
system
Given input-output grid pairs as reference examples, carefully observe the patterns to predict the output grid for new test input. Each pair follows the same transformation rule. Grids are 2D arrays represented as strings, with cells (colors) separated by spaces and rows by newlines.
Here are the input and output grids for the reference examples:
Example 1
Input:
Red Red Blue Blue Blue Brown Red Blue Blue Blue
Red Blue Blue Blue Red Brown Red Red Red Blue
Red Red Red Red Red Brown Red Blue Red Red
Red Red Red Blue Blue Brown Red Red Blue Blue

Output:
Red Blue Blue Blue
Brown Brown Brown Brown
Red Brown Red Red
Red Red Blue Blue


Example 2
Input:
Blue Red Blue Red Blue Brown Red Red Blue Red
Red Blue Red Red Blue Brown Red Red Blue Red
Red Red Red Red Blue Brown Red Blue Blue Blue
Blue Blue Blue Blue Blue Brown Red Red Red Red

Output:
Red Brown Brown Brown
Brown Red Brown Brown
Red Brown Brown Blue
Brown Brown Brown Brown


Example 3
Input:
Blue Red Blue Blue Blue Brown Red Red Red Red
Blue Blue Red Red Red Brown Red Blue Blue Blue
Blue Blue Red Blue Blue Brown Blue Red Red Blue
Red Red Blue Red Red Brown Red Red Red Blue

Output:
Red Brown Brown Brown
Brown Brown Brown Brown
Blue Red Brown Blue
Red Brown Red Brown


Here is the input grid for the test example:
Input:
Blue Red Red Blue Red Brown Blue Blue Red Red
Red Blue Red Red Red Brown Blue Red Red Blue
Blue Blue Red Blue Red Brown Blue Red Blue Blue
Blue Red Red Blue Blue Brown Blue Blue Blue Red


Directly provide the output grids corresponding to the given test input grids, based on the patterns observed in the reference examples.
user
The output grid for the test input grid is:

```
Brown Brown Brown Red
Blue Red Red Brown
Blue Red Blue Brown
Brown Brown Blue Brown
```
assistant