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

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


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

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


Example 3
Input:
Purple Gray Gray Purple
Yellow Pink Pink Yellow
Purple Pink Pink Purple
Brown Blue Blue Brown

Output:
Brown Blue Blue Brown
Purple Pink Pink Purple
Yellow Pink Pink Yellow
Purple Gray Gray Purple


Here is the input grid for the test example:
Input:
Gray Blue Gray Green Green Brown
Orange Brown Purple Purple Orange Green
Orange Brown Purple Purple Orange Green
Gray Blue Gray Green Green 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:

```
Brown Green Green Gray Blue Gray
Green Orange Purple Purple Brown Orange
Green Orange Purple Purple Brown Orange
Brown Green Green Gray Blue Gray
```
assistant