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

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


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

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


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

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


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


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:

```
Yellow Brown Blue
Green Pink Pink
Green Orange Pink
Green Orange Green
```
assistant