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:
Blue Blue Green Blue Blue
Black Green Black Green Black
Blue Blue Black Blue Blue
Green Green Blue Green Green
Green Green Green Green Green
Blue Green Green Green Blue

Output:
Green Red Red Green Brown Green
Red Red Red Green Red Green
Red Red Green Brown Brown Red
Red Red Red Green Red Green
Green Red Red Green Brown Green


Example 2
Input:
Black Blue Black Green Red Black
Blue Blue Black Red Red Green
Blue Red Black Blue Green Blue
Green Green Blue Blue Blue Black
Red Red Blue Blue Red Black
Red Red Green Red Red Red

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


Example 3
Input:
Blue Blue Green Blue
Green Green Green Blue
Blue Green Green Green
Blue Green Blue Blue

Output:
Green Green Red Green
Red Red Red Green
Green Red Red Red
Green Red Green Green


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


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:

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