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:
Yellow Red Purple Brown Orange
Pink Gray Yellow Red Gray
Gray Orange Brown Blue Pink
Brown Brown Gray Green Purple
Blue Red Red Yellow Brown

Output:
Yellow Red Gray Brown Orange
Pink Gray Orange Red Gray
Red Gray Brown Yellow Purple
Brown Brown Blue Green Purple
Blue Red Pink Yellow Brown


Example 2
Input:
Orange Brown Green Yellow Yellow
Green Brown Pink Yellow Pink
Purple Gray Green Red Purple
Purple Red Red Blue Brown
Orange Red Brown Orange Purple

Output:
Orange Brown Purple Yellow Yellow
Green Brown Gray Yellow Pink
Brown Red Green Pink Green
Purple Red Red Blue Brown
Orange Red Purple Orange Purple


Example 3
Input:
Pink Gray Red Purple Brown
Red Green Pink Red Pink
Blue Brown Gray Green Red
Brown Yellow Gray Blue Red
Orange Purple Pink Brown Yellow

Output:
Pink Gray Blue Purple Brown
Red Green Brown Red Pink
Pink Gray Gray Pink Red
Brown Yellow Green Blue Red
Orange Purple Red Brown Yellow


Here is the input grid for the test example:
Input:
Red Brown Green Red Green
Blue Yellow Brown Green Red
Brown Brown Red Brown Red
Yellow Purple Yellow Brown Gray
Blue Blue Pink Orange Blue


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 Brown Brown Red Green
Blue Yellow Brown Green Red
Pink Yellow Red Brown Green
Yellow Purple Brown Brown Gray
Blue Blue Red Orange Blue
```
assistant